aboutsummaryrefslogtreecommitdiffstats
path: root/unix.c
diff options
context:
space:
mode:
authorWilmer van der Gaast <wilmer@gaast.net>2010-09-05 12:31:22 +0100
committerWilmer van der Gaast <wilmer@gaast.net>2010-09-05 12:31:22 +0100
commitfef78131a46462ee1d1457aa690c52a52b23151a (patch)
treec4ecee50eb32da7aee9587b7a107eb2ab348e48a /unix.c
parent41e0c00fd22d1cdace2040be5912d64f51f12ab8 (diff)
Fix compiler warnings. Also fixing irc_send_motd(), which so far got away
with a horrible practice of reading the MOTD file one by one.
Diffstat (limited to 'unix.c')
-rw-r--r--unix.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/unix.c b/unix.c
index c3ecbc99..0d373234 100644
--- a/unix.c
+++ b/unix.c
@@ -166,7 +166,7 @@ int main( int argc, char *argv[] )
/* Looks like env should *not* be freed here as putenv
doesn't make a copy. Odd. */
- chdir( old_cwd );
+ i = chdir( old_cwd );
close( global.listen_socket );
if( execv( argv[0], argv ) == -1 )