]> git.tue.mpg.de Git - paraslash.git/commitdiff
command: Remove two dead stores.
authorAndre Noll <maan@systemlinux.org>
Mon, 15 Aug 2011 18:20:02 +0000 (20:20 +0200)
committerAndre Noll <maan@systemlinux.org>
Wed, 21 Sep 2011 15:58:45 +0000 (17:58 +0200)
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

index 69bbbb74dd2831791e0f24378d7a4c4451bb6524..74d82697dd241c8c435bf2f78d0052a1b5df9b10 100644 (file)
--- 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));