diff options
author | FreeArtMan <dos21h@gmail.com> | 2017-05-20 15:28:07 +0100 |
---|---|---|
committer | FreeArtMan <dos21h@gmail.com> | 2017-05-20 15:28:07 +0100 |
commit | f5e6f56a82e56cfd72a0e2f1ce9b583398636545 (patch) | |
tree | a8705da438f341dc7a329db964747bf3ad379936 /cmd/cmd_uptime.c | |
parent | eca4a1364bc1313fe0c40c07b7776d3fd8a8e6fc (diff) | |
download | agni-f5e6f56a82e56cfd72a0e2f1ce9b583398636545.tar.gz agni-f5e6f56a82e56cfd72a0e2f1ce9b583398636545.zip |
Fixed warnings all over the code
Diffstat (limited to 'cmd/cmd_uptime.c')
-rw-r--r-- | cmd/cmd_uptime.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/cmd/cmd_uptime.c b/cmd/cmd_uptime.c index 6a9c963..4f0a4f3 100644 --- a/cmd/cmd_uptime.c +++ b/cmd/cmd_uptime.c @@ -5,7 +5,7 @@ void *cmd_uptime(void *data) { - char *param = (char *)data; + //char *param = (char *)data; char *ret = NULL; const int buf_size = 128; @@ -15,7 +15,7 @@ void *cmd_uptime(void *data) FILE *f=NULL; double d1,d2; - int i1,i2; + int i1; f = fopen(PROCFS_UPTIME_PATH,"r"); fscanf(f,"%lf %lf", &d1, &d2); @@ -23,7 +23,6 @@ void *cmd_uptime(void *data) printf("Readed %lf %lf\n", d1, d2); i1 = d1; - i2 = d2; printf("Days %d Hours %d Minutes %d\n",i1/(3600*24),i1/(3600)%24, (i1/60)%60); snprintf(buf, buf_size,"%dd %dh %dm\n",i1/(3600*24),i1/(3600)%24, (i1/60)%60); |