projects
/
paraslash.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0cd4172
)
com_stat(): Remove pointless uptime variable.
author
Andre Noll
<maan@systemlinux.org>
Wed, 29 Jan 2014 00:26:28 +0000
(
01:26
+0100)
committer
Andre 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
patch
|
blob
|
history
diff --git
a/command.c
b/command.c
index
84dd1bf
..
a8d479e
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;
}