about summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/ngircd/conn.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/ngircd/conn.c b/src/ngircd/conn.c
index 3a430428..3c1427d5 100644
--- a/src/ngircd/conn.c
+++ b/src/ngircd/conn.c
@@ -139,7 +139,7 @@ static int
 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
@@ -151,7 +151,7 @@ my_sd_listen_fds(void)
 	e = getenv("LISTEN_FDS");
 	if (!e || !*e)
 		return -1;
-	count = atol(e);
+	count = atoi(e);
 	unsetenv("LISTEN_FDS");
 
 	return count;