From 8cfc6cba3e462086e32f7d340da6ac0e1635babb Mon Sep 17 00:00:00 2001 From: Ralf Baechle Date: Mon, 30 Jan 2017 14:00:47 +0100 Subject: ttylinkd: Fix use of 0 instead of NULL as a pointer value. Signed-off-by: Ralf Baechle --- tcpip/ttylinkd.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'tcpip') 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) { -- cgit v1.2.3