From: Andre Noll Date: Mon, 15 Aug 2011 18:20:02 +0000 (+0200) Subject: command: Remove two dead stores. X-Git-Tag: v0.4.9~18^2 X-Git-Url: http://git.tuebingen.mpg.de/?p=paraslash.git;a=commitdiff_plain;h=474b4dfc006b9a7520d017ca4c82aab589dff934;hp=-c 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; ^ ~~~ --- 474b4dfc006b9a7520d017ca4c82aab589dff934 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));