commit - b95dfb3ffd798e00df54b52496963d2a998ccbb0
commit + 1438771124ed4730aca2d722595166e31ecd88c5
blob - 3a430428adc9832b8f06f16ddbe4052737548a33
blob + 3c1427d5461272ac83a68c21e769f557bc80d472
--- src/ngircd/conn.c
+++ src/ngircd/conn.c
my_sd_listen_fds(void)
{
const char *e;
- long count;
+ int count;
/* Check if LISTEN_PID exists; but we ignore the result, because
* normally ngircd forks a child before checking this, and therefore
e = getenv("LISTEN_FDS");
if (!e || !*e)
return -1;
- count = atol(e);
+ count = atoi(e);
unsetenv("LISTEN_FDS");
return count;