diff options
Diffstat (limited to 'usr.bin/talk')
-rw-r--r-- | usr.bin/talk/get_addrs.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/usr.bin/talk/get_addrs.c b/usr.bin/talk/get_addrs.c index 526e26fd5761..b2af6855ddbd 100644 --- a/usr.bin/talk/get_addrs.c +++ b/usr.bin/talk/get_addrs.c @@ -59,7 +59,7 @@ get_addrs(const char *my_machine_name __unused, const char *his_machine_name) err(1, "failed to find my interface address"); /* find the server's port */ sp = getservbyname("ntalk", "udp"); - if (sp == 0) + if (sp == NULL) errx(1, "ntalk/udp: service is not registered"); daemon_port = sp->s_port; } |