summaryrefslogtreecommitdiff
path: root/cmd/cmd_rand_libc.c
diff options
context:
space:
mode:
authorFreeArtMan <dos21h@gmail.com>2017-05-20 15:28:07 +0100
committerFreeArtMan <dos21h@gmail.com>2017-05-20 15:28:07 +0100
commitf5e6f56a82e56cfd72a0e2f1ce9b583398636545 (patch)
treea8705da438f341dc7a329db964747bf3ad379936 /cmd/cmd_rand_libc.c
parenteca4a1364bc1313fe0c40c07b7776d3fd8a8e6fc (diff)
downloadagni-f5e6f56a82e56cfd72a0e2f1ce9b583398636545.tar.gz
agni-f5e6f56a82e56cfd72a0e2f1ce9b583398636545.zip
Fixed warnings all over the code
Diffstat (limited to 'cmd/cmd_rand_libc.c')
-rw-r--r--cmd/cmd_rand_libc.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/cmd/cmd_rand_libc.c b/cmd/cmd_rand_libc.c
index d72bc45..1860a77 100644
--- a/cmd/cmd_rand_libc.c
+++ b/cmd/cmd_rand_libc.c
@@ -4,7 +4,6 @@
void *cmd_rand_libc(void *data)
{
char *ret = NULL;
- int fret=-1;
const int buf_size = 128;
char buf[buf_size+1];
@@ -25,7 +24,7 @@ void *cmd_rand_libc(void *data)
} else {
//cut output to 512
char str_integer[16];
- int rand_state;
+ unsigned int rand_state;
params = sdsnew(data);
out_result = sdsempty();