From 70a009216d4dd259ceea2788bbf93030211170b4 Mon Sep 17 00:00:00 2001 From: Ralf Baechle Date: Mon, 30 Jan 2017 13:36:03 +0100 Subject: mheard: Fix use of 0 instead of NULL as a pointer value. Signed-off-by: Ralf Baechle --- ax25/mheard.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'ax25') diff --git a/ax25/mheard.c b/ax25/mheard.c index 8156ab5..d1cfd0f 100644 --- a/ax25/mheard.c +++ b/ax25/mheard.c @@ -79,7 +79,7 @@ static void PrintPortEntry(struct PortRecord *pr, int data) return; if (pr->entry.last_heard < 0) return; - if ((loc = localtime(&pr->entry.last_heard)) == 0 || + if ((loc = localtime(&pr->entry.last_heard)) == NULL || strftime(lh, sizeof(lh),"%Y-%m-%d %H:%M:%S", loc) == 0) return; call = ax25_ntoa(&pr->entry.from_call); @@ -114,10 +114,10 @@ static void PrintPortEntry(struct PortRecord *pr, int data) case 2: if (pr->entry.last_heard < 0 || pr->entry.first_heard < 0) return; - if ((loc = localtime(&pr->entry.last_heard)) == 0 || + if ((loc = localtime(&pr->entry.last_heard)) == NULL || strftime(lh, sizeof(lh),"%Y-%m-%d %H:%M:%S", loc) == 0) return; - if ((loc = localtime(&pr->entry.first_heard)) == 0 || + if ((loc = localtime(&pr->entry.first_heard)) == NULL || strftime(fh, sizeof(fh),"%Y-%m-%d %H:%M:%S", loc) == 0) return; call = ax25_ntoa(&pr->entry.from_call); @@ -169,10 +169,10 @@ static void PrintPortEntry(struct PortRecord *pr, int data) return; if (pr->entry.last_heard < 0 || pr->entry.first_heard < 0) return; - if ((loc = localtime(&pr->entry.last_heard)) == 0 || + if ((loc = localtime(&pr->entry.last_heard)) == NULL || strftime(lh, sizeof(lh),"%Y-%m-%d %H:%M:%S", loc) == 0) return; - if ((loc = localtime(&pr->entry.first_heard)) == 0 || + if ((loc = localtime(&pr->entry.first_heard)) == NULL || strftime(fh, sizeof(fh),"%Y-%m-%d %H:%M:%S", loc) == 0) return; call = ax25_ntoa(&pr->entry.from_call); -- cgit v1.2.3