summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRalf Baechle <ralf@linux-mips.org>2017-01-30 13:56:54 +0100
committerRalf Baechle <ralf@linux-mips.org>2017-02-06 23:43:46 +0100
commitfcbe9f15a8fbe71f1ec4c800cfb31ae831996be9 (patch)
treeb67dd210b19c4df5b40d6f5c3a74471ad01d7124
parent2519c9e59f0fbfc99e0298591ad791adfa861896 (diff)
ax25d: Fix use of 0 instead of NULL as a pointer value.
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
-rw-r--r--ax25/ax25d.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/ax25/ax25d.c b/ax25/ax25d.c
index 30aa0af..af75d85 100644
--- a/ax25/ax25d.c
+++ b/ax25/ax25d.c
@@ -243,7 +243,7 @@ static void reload_timer(int sec)
itv.it_value.tv_usec = 0;
itv.it_interval.tv_sec = 0;
itv.it_interval.tv_usec = 0;
- setitimer(ITIMER_REAL, &itv, 0);
+ setitimer(ITIMER_REAL, &itv, NULL);
signal(SIGALRM, _ReadConfig);
}
@@ -1272,7 +1272,7 @@ int main(int argc, char *argv[])
}
*buf = 0;
- mesg = 0;
+ mesg = NULL;
while ((i = read(new, buf, (sizeof(buf)-1))) > 0) {
buf[i] = 0;
if (Logging && raxl->LoggingVC > 1) {