diff options
author | Volker Lendecke <vl@samba.org> | 2009-02-14 17:37:47 +0100 |
---|---|---|
committer | Volker Lendecke <vl@samba.org> | 2009-02-14 22:00:43 +0100 |
commit | 01aff219dd4036ca9a542acac08b7355b764e4ce (patch) | |
tree | 8f990a004b774240a2be65e17dbc64f0999a30cc /lib/tevent | |
parent | 7caadefaa20afeb98a77f14c2948f03cde1d8786 (diff) | |
download | samba-01aff219dd4036ca9a542acac08b7355b764e4ce.tar.gz samba-01aff219dd4036ca9a542acac08b7355b764e4ce.tar.bz2 samba-01aff219dd4036ca9a542acac08b7355b764e4ce.zip |
Add two variable assignments to shut up gcc
Diffstat (limited to 'lib/tevent')
-rw-r--r-- | lib/tevent/tevent_signal.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/lib/tevent/tevent_signal.c b/lib/tevent/tevent_signal.c index 04ee6975bd..b87c212402 100644 --- a/lib/tevent/tevent_signal.c +++ b/lib/tevent/tevent_signal.c @@ -78,10 +78,11 @@ static uint32_t sig_count(struct sigcounter s) static void tevent_common_signal_handler(int signum) { char c = 0; + ssize_t res; SIG_INCREMENT(sig_state->signal_count[signum]); SIG_INCREMENT(sig_state->got_signal); /* doesn't matter if this pipe overflows */ - write(sig_state->pipe_hack[1], &c, 1); + res = write(sig_state->pipe_hack[1], &c, 1); } #ifdef SA_SIGINFO @@ -152,8 +153,9 @@ static void signal_pipe_handler(struct tevent_context *ev, struct tevent_fd *fde uint16_t flags, void *private) { char c[16]; + ssize_t res; /* its non-blocking, doesn't matter if we read too much */ - read(sig_state->pipe_hack[0], c, sizeof(c)); + res = read(sig_state->pipe_hack[0], c, sizeof(c)); } /* |