summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
b95dfb3)
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'
my_sd_listen_fds(void)
{
const char *e;
my_sd_listen_fds(void)
{
const char *e;
/* Check if LISTEN_PID exists; but we ignore the result, because
* normally ngircd forks a child before checking this, and therefore
/* 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;
e = getenv("LISTEN_FDS");
if (!e || !*e)
return -1;
unsetenv("LISTEN_FDS");
return count;
unsetenv("LISTEN_FDS");
return count;