diff options
author | Ralf Baechle <ralf@linux-mips.org> | 2017-01-30 13:36:03 +0100 |
---|---|---|
committer | Ralf Baechle <ralf@linux-mips.org> | 2017-02-06 23:43:46 +0100 |
commit | 70a009216d4dd259ceea2788bbf93030211170b4 (patch) | |
tree | 0c8a23af102d3aa9f163496d59e67b8b92e55d72 | |
parent | 477f12ca229589baa18098690ebd58c50e20dd8a (diff) |
mheard: Fix use of 0 instead of NULL as a pointer value.
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
-rw-r--r-- | ax25/mheard.c | 10 |
1 files changed, 5 insertions, 5 deletions
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); |