summaryrefslogtreecommitdiff
path: root/ifpps.c
diff options
context:
space:
mode:
authorDaniel Borkmann <dborkman@redhat.com>2013-07-13 16:09:05 +0200
committerDaniel Borkmann <dborkman@redhat.com>2013-07-13 16:09:05 +0200
commit86373411a23051a18ae3ed01b180f838dbcd76e7 (patch)
treefe3661ffdbdda3b6d252f125f49ebb0556b04d3a /ifpps.c
parented57128990c02342e1abe7f2a3abd1568f965dc7 (diff)
misc: fix multiple NULL pointer sparse warnings
Those are fixes for the following warnings: pcap_mm.c:119:29: warning: Using plain integer as NULL pointer pcap_mm.c:141:29: warning: Using plain integer as NULL pointer ring.c:24:31: warning: Using plain integer as NULL pointer flowtop.c:1114:22: warning: Using plain integer as NULL pointer ifpps.c:1133:29: warning: Using plain integer as NULL pointer Signed-off-by: Daniel Borkmann <dborkman@redhat.com>
Diffstat (limited to 'ifpps.c')
-rw-r--r--ifpps.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ifpps.c b/ifpps.c
index ea98ca2..6742dd7 100644
--- a/ifpps.c
+++ b/ifpps.c
@@ -1130,7 +1130,7 @@ static void term_csv(const char *ifname, const struct ifstat *rel,
{
int cpus, i;
- printf("%ld ", time(0));
+ printf("%ld ", time(NULL));
printf("%llu ", rel->rx_bytes);
printf("%llu ", rel->rx_packets);