summaryrefslogtreecommitdiffstats
path: root/usr.sbin/xntpd/lib/netof.c
diff options
context:
space:
mode:
Diffstat (limited to 'usr.sbin/xntpd/lib/netof.c')
-rw-r--r--usr.sbin/xntpd/lib/netof.c9
1 files changed, 4 insertions, 5 deletions
diff --git a/usr.sbin/xntpd/lib/netof.c b/usr.sbin/xntpd/lib/netof.c
index 286a584..def3013 100644
--- a/usr.sbin/xntpd/lib/netof.c
+++ b/usr.sbin/xntpd/lib/netof.c
@@ -7,19 +7,18 @@
#include "ntp_fp.h"
#include "ntp_stdlib.h"
-U_LONG
+u_long
netof(num)
- U_LONG num;
+ u_long num;
{
- register U_LONG netnum;
+ register u_long netnum;
netnum = num;
-
if(IN_CLASSC(netnum))
netnum &= IN_CLASSC_NET;
else if (IN_CLASSB(netnum))
netnum &= IN_CLASSB_NET;
- else /* treat als other like class A */
+ else /* treat all other like class A */
netnum &= IN_CLASSA_NET;
return netnum;
}
OpenPOWER on IntegriCloud