diff options
| author | Alexander Barton <alex@barton.de> | 2013-02-11 23:25:13 +0100 |
|---|---|---|
| committer | Alexander Barton <alex@barton.de> | 2013-02-11 23:25:13 +0100 |
| commit | 1438771124ed4730aca2d722595166e31ecd88c5 (patch) | |
| tree | c2a29857305f9e5bee9e1db37f6301869e4c7a59 | |
| parent | b95dfb3ffd798e00df54b52496963d2a998ccbb0 (diff) | |
| download | ngircd-1438771124ed4730aca2d722595166e31ecd88c5.tar.gz ngircd-1438771124ed4730aca2d722595166e31ecd88c5.zip | |
my_sd_listen_fds(): really return an "int"
This fixes the following warning using Apple LLVM version 4.2
(clang-425.0.24) on OS X:
src/ngircd/conn.c:157:9: Implicit conversion loses integer
precision: 'long' to 'int'
| -rw-r--r-- | src/ngircd/conn.c | 4 |
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; |