From 78166aa5b035f5e501e7c3f822d88688ae2e8035 Mon Sep 17 00:00:00 2001 From: Sam Hocevar Date: Fri, 16 May 2008 22:01:18 +0000 Subject: [PATCH] * Cosmetic: remove trailing spaces from the source code. --- src/debug.c | 2 +- src/fd.c | 6 +++--- src/lib-fd.c | 6 +++--- src/zzuf.c | 4 ++-- 4 files changed, 9 insertions(+), 9 deletions(-) diff --git a/src/debug.c b/src/debug.c index 2f62dda..552c5b8 100644 --- a/src/debug.c +++ b/src/debug.c @@ -139,7 +139,7 @@ void _zz_debug(char const *format, ...) break; if(i == 0) write(_zz_debugfd, ".", 1); - write(_zz_debugfd, hex2char + (int)g, 1); + write(_zz_debugfd, hex2char + (int)g, 1); } } else if(f[0] == 'p') diff --git a/src/fd.c b/src/fd.c index 8ae668f..d187d53 100644 --- a/src/fd.c +++ b/src/fd.c @@ -100,12 +100,12 @@ void _zz_exclude(char const *regex) } void _zz_ports(char const *portlist) -{ +{ ports = _zz_allocrange(portlist, static_ports); } void _zz_list(char const *fdlist) -{ +{ list = _zz_allocrange(fdlist, static_list); } @@ -260,7 +260,7 @@ void _zz_register(int fd) fds[i] = -1; maxfd *= 2; } - + /* Find an empty slot */ for(i = 0; i < nfiles; i++) if(files[i].managed == 0) diff --git a/src/lib-fd.c b/src/lib-fd.c index 2ef9329..da57fac 100644 --- a/src/lib-fd.c +++ b/src/lib-fd.c @@ -325,7 +325,7 @@ RECV_T NEW(recv)(int s, void *buf, size_t len, int flags) if(!_zz_ready || !_zz_iswatched(s) || _zz_islocked(s) || !_zz_isactive(s)) return ret; - if(ret > 0) + if(ret > 0) { char *b = buf; @@ -349,7 +349,7 @@ RECV_T NEW(recv)(int s, void *buf, size_t len, int flags) #if defined HAVE_RECVFROM RECV_T NEW(recvfrom)(int s, void *buf, size_t len, int flags, - struct sockaddr *from, SOCKLEN_T *fromlen) + struct sockaddr *from, SOCKLEN_T *fromlen) { int ret; @@ -358,7 +358,7 @@ RECV_T NEW(recvfrom)(int s, void *buf, size_t len, int flags, if(!_zz_ready || !_zz_iswatched(s) || _zz_islocked(s) || !_zz_isactive(s)) return ret; - if(ret > 0) + if(ret > 0) { char *b = buf; diff --git a/src/zzuf.c b/src/zzuf.c index 26a7155..68dfd90 100644 --- a/src/zzuf.c +++ b/src/zzuf.c @@ -452,7 +452,7 @@ int main(int argc, char *argv[]) /* Clean up */ _zz_opts_fini(opts); - return opts->crashes ? EXIT_FAILURE : EXIT_SUCCESS; + return opts->crashes ? EXIT_FAILURE : EXIT_SUCCESS; } static void loop_stdin(struct opts *opts) @@ -1010,7 +1010,7 @@ static int run_process(struct opts *opts, int pipes[][2]) epaddr = get_entry(opts->newargv[0]); if(!epaddr) return -1; - + memset(&sinfo, 0, sizeof(sinfo)); sinfo.cb = sizeof(sinfo); DuplicateHandle(pid, (HANDLE)_get_osfhandle(pipes[0][1]), pid,