]> arthur.barton.de Git - ngircd-alex.git/commit
Fix gcc warning "ignoring return value of ..."
authorAlexander Barton <alex@barton.de>
Fri, 9 Apr 2010 18:08:47 +0000 (20:08 +0200)
committerAlexander Barton <alex@barton.de>
Fri, 9 Apr 2010 18:14:11 +0000 (20:14 +0200)
commit025342fe46ae504a08be8c642901ec7eb7c4fccb
treee9fe13bdf67c1b2586de3d3e5ac2668d7e47e01e
parent628c6c962b1054de4c27304f53c4ac7c50c79a11
Fix gcc warning "ignoring return value of ..."

This patch fixes two warnings of gcc 4.4.3 when used with eglibc 2.11.1:

ngircd.c: In function ‘NGIRCd_Init’:
ngircd.c:801: warning: ignoring return value of ‘chdir’, declared with
 attribute warn_unused_result
conn.c: In function ‘Simple_Message’:
conn.c:2041: warning: ignoring return value of ‘write’, declared with
 attribute warn_unused_result

The first by checking the return code and an appropriate error message,
the second by "better" ignoring it (which is correct there!) ...
src/ngircd/conn.c
src/ngircd/ngircd.c