summaryrefslogtreecommitdiff
path: root/source3/winbindd
diff options
context:
space:
mode:
authorVolker Lendecke <vl@samba.org>2018-05-03 11:48:45 +0200
committerJeremy Allison <jra@samba.org>2018-07-24 23:31:43 +0200
commit7d40f6079926ae93406b0c09ea5111e643b29a00 (patch)
tree42a44597e382f4b4db00444234c0182ec8eb0c4b /source3/winbindd
parent8a530433e0499f2c1a14a801e49e5ecf0a13dc74 (diff)
downloadsamba-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.c6
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) {