From 474b4dfc006b9a7520d017ca4c82aab589dff934 Mon Sep 17 00:00:00 2001 From: Andre Noll Date: Mon, 15 Aug 2011 20:20:02 +0200 Subject: [PATCH] command: Remove two dead stores. command.c:771:2: warning: Value stored to 'ret' is never read ret = -E_BAD_USER; ^ ~~~~~~~~~~~ command.c:765:2: warning: Value stored to 'numbytes' is never read numbytes = ret; ^ ~~~ --- command.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/command.c b/command.c index 69bbbb74..74d82697 100644 --- a/command.c +++ b/command.c @@ -762,13 +762,11 @@ __noreturn void handle_connect(int fd, const char *peername) ret = -E_AUTH_REQUEST; goto net_err; } - numbytes = ret; ret = -E_AUTH_REQUEST; if (strncmp(buf, AUTH_REQUEST_MSG, strlen(AUTH_REQUEST_MSG))) goto net_err; p = buf + strlen(AUTH_REQUEST_MSG); PARA_DEBUG_LOG("received auth request for user %s\n", p); - ret = -E_BAD_USER; u = lookup_user(p); if (u) { get_random_bytes_or_die(rand_buf, sizeof(rand_buf)); -- 2.39.5