summaryrefslogtreecommitdiff
path: root/trafgen.c
diff options
context:
space:
mode:
authorDaniel Borkmann <dborkman@redhat.com>2013-07-13 16:46:51 +0200
committerDaniel Borkmann <dborkman@redhat.com>2013-07-13 16:48:05 +0200
commit9b9072c77d415000b110627c0f5aaa7f9d642d19 (patch)
tree7690389eec7e932595f02fd33a121c12d429ae18 /trafgen.c
parent3fb9ca90bffa92e5c5399440994170c4b8cb96f1 (diff)
sparse: netsniff-ng, trafgen: fix remaining time(0) warnings
Those are the last occurences of warnings like: netsniff-ng.c:697:48: warning: Using plain integer as NULL pointer netsniff-ng.c:726:48: warning: Using plain integer as NULL pointer ... Signed-off-by: Daniel Borkmann <dborkman@redhat.com>
Diffstat (limited to 'trafgen.c')
-rw-r--r--trafgen.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/trafgen.c b/trafgen.c
index a370333..2e32f09 100644
--- a/trafgen.c
+++ b/trafgen.c
@@ -865,7 +865,7 @@ static unsigned int generate_srand_seed(void)
fd = open("/dev/urandom", O_RDONLY);
if (fd < 0)
- return time(0);
+ return time(NULL);
read_or_die(fd, &_seed, sizeof(_seed));