]> git.ipfire.org Git - thirdparty/haproxy.git/commit
CLEANUP: remove a few warning about unchecked return values in debug code
authorWilly Tarreau <w@1wt.eu>
Sun, 29 Apr 2012 12:11:38 +0000 (14:11 +0200)
committerWilly Tarreau <w@1wt.eu>
Mon, 30 Apr 2012 09:56:30 +0000 (11:56 +0200)
commit21337825c0346e78c80ff42dcdd319611d49f959
tree40e604e938fef31f05f0b743299bb7e417ee5313
parent9a7bea52b12b612e83524037d20b941d1d97cfc4
CLEANUP: remove a few warning about unchecked return values in debug code

There were a few unchecked write() calls in the debug code that cause
gcc 4.x to emit warnings on recent libc. We don't want to check them
as we can't make anything from the result, let's simply surround them
with an empty if statement.

Note that one of the warnings was for chdir("/") which normally cannot
fail since it follows a successful chroot (which means the perms are
necessarily there). Anyway let's move the call uppe to protect it too.
src/appsession.c
src/frontend.c
src/haproxy.c
src/proto_http.c
src/session.c