From: Volker Lendecke Date: Thu, 3 May 2018 09:48:45 +0000 (+0200) Subject: winbind: Move variable declarations close to their use X-Git-Tag: ldb-1.5.0~209 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=7d40f6079926ae93406b0c09ea5111e643b29a00;p=thirdparty%2Fsamba.git winbind: Move variable declarations close to their use Signed-off-by: Volker Lendecke Reviewed-by: Jeremy Allison Autobuild-User(master): Jeremy Allison Autobuild-Date(master): Tue Jul 24 23:31:43 CEST 2018 on sn-devel-144 --- 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) {