diff options
author | Volker Lendecke <vl@samba.org> | 2018-05-03 11:48:45 +0200 |
---|---|---|
committer | Jeremy Allison <jra@samba.org> | 2018-07-24 23:31:43 +0200 |
commit | 7d40f6079926ae93406b0c09ea5111e643b29a00 (patch) | |
tree | 42a44597e382f4b4db00444234c0182ec8eb0c4b /source3/winbindd | |
parent | 8a530433e0499f2c1a14a801e49e5ecf0a13dc74 (diff) | |
download | samba-7d40f6079926ae93406b0c09ea5111e643b29a00.tar.gz |
winbind: Move variable declarations close to their use
Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
Autobuild-User(master): Jeremy Allison <jra@samba.org>
Autobuild-Date(master): Tue Jul 24 23:31:43 CEST 2018 on sn-devel-144
Diffstat (limited to 'source3/winbindd')
-rw-r--r-- | source3/winbindd/winbindd.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/source3/winbindd/winbindd.c b/source3/winbindd/winbindd.c index 254d93b344d..5e273762ff1 100644 --- a/source3/winbindd/winbindd.c +++ b/source3/winbindd/winbindd.c @@ -1084,9 +1084,6 @@ static void winbind_client_processed(struct tevent_req *req) static void remove_client(struct winbindd_cli_state *state) { - char c = 0; - int nwritten; - /* It's a dead client - hold a funeral */ if (state == NULL) { @@ -1113,6 +1110,9 @@ static void remove_client(struct winbindd_cli_state *state) TALLOC_FREE(state->io_req); if (state->sock != -1) { + char c = 0; + int nwritten; + /* tell client, we are closing ... */ nwritten = write(state->sock, &c, sizeof(c)); if (nwritten == -1) { |