]> git.tuebingen.mpg.de Git - paraslash.git/commitdiff
com_stat(): Remove pointless uptime variable.
authorAndre Noll <maan@systemlinux.org>
Wed, 29 Jan 2014 00:26:28 +0000 (01:26 +0100)
committerAndre Noll <maan@systemlinux.org>
Sat, 22 Feb 2014 15:52:06 +0000 (16:52 +0100)
This variable is set but the content is never used. Drop it.

command.c

index 84dd1bff8a7132d287638ae2571d1d8935743e77..a8d479e95c7a237f4889ad389a7cf2bf46dc5433 100644 (file)
--- a/command.c
+++ b/command.c
@@ -110,7 +110,6 @@ static unsigned get_status(struct misc_meta_data *nmmd, int parser_friendly,
        char mtime[30] = "";
        char *status, *flags; /* vss status info */
        /* nobody updates our version of "now" */
-       char *ut = get_server_uptime_str(NULL);
        long offset = (nmmd->offset + 500) / 1000;
        struct timeval current_time;
        struct tm mtime_tm;
@@ -144,7 +143,6 @@ static unsigned get_status(struct misc_meta_data *nmmd, int parser_friendly,
                (long unsigned)current_time.tv_usec);
        free(flags);
        free(status);
-       free(ut);
        *result = b.buf;
        return b.offset;
 }