diff options
author | Ralf Baechle <ralf@linux-mips.org> | 2017-01-30 14:00:47 +0100 |
---|---|---|
committer | Ralf Baechle <ralf@linux-mips.org> | 2017-02-06 23:43:46 +0100 |
commit | 8cfc6cba3e462086e32f7d340da6ac0e1635babb (patch) | |
tree | 61acb16743827da0b11bf148c8f182e3bab77607 | |
parent | fcbe9f15a8fbe71f1ec4c800cfb31ae831996be9 (diff) |
ttylinkd: Fix use of 0 instead of NULL as a pointer value.
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
-rw-r--r-- | tcpip/ttylinkd.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/tcpip/ttylinkd.c b/tcpip/ttylinkd.c index 7936174..c11ffa6 100644 --- a/tcpip/ttylinkd.c +++ b/tcpip/ttylinkd.c @@ -226,8 +226,8 @@ int main(int argc, char *argv[]) sysop_user=strtok(sysop_addr,"@"); sysop_host=strtok(NULL,"@"); - if ((ppe = getprotobyname("udp")) == 0) - { + ppe = getprotobyname("udp"); + if (!ppe) { syslog(LOG_DAEMON | LOG_CRIT, "Cannot find udp protocol entry."); exit(1); } @@ -383,7 +383,7 @@ int main(int argc, char *argv[]) signal(SIGALRM, alarm_handle); alarm(30); - if ((new_skt = accept(skt, 0, 0)) < 0) + if ((new_skt = accept(skt, NULL, NULL)) < 0) { if (errno == EINTR) { |