summaryrefslogtreecommitdiffstats
path: root/usr.sbin/ppp/filter.c
diff options
context:
space:
mode:
Diffstat (limited to 'usr.sbin/ppp/filter.c')
-rw-r--r--usr.sbin/ppp/filter.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/usr.sbin/ppp/filter.c b/usr.sbin/ppp/filter.c
index f59848e..af5691b 100644
--- a/usr.sbin/ppp/filter.c
+++ b/usr.sbin/ppp/filter.c
@@ -80,7 +80,7 @@ ParsePort(const char *service, const char *proto)
int port;
servent = getservbyname(service, proto);
- if (servent != 0)
+ if (servent != NULL)
return ntohs(servent->s_port);
port = strtol(service, &cp, 0);
OpenPOWER on IntegriCloud