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.c24
1 files changed, 0 insertions, 24 deletions
diff --git a/usr.sbin/xntpd/lib/netof.c b/usr.sbin/xntpd/lib/netof.c
deleted file mode 100644
index b8876c7..0000000
--- a/usr.sbin/xntpd/lib/netof.c
+++ /dev/null
@@ -1,24 +0,0 @@
-/*
- * netof - return the net address part of an ip address
- * (zero out host part)
- */
-#include <stdio.h>
-
-#include "ntp_fp.h"
-#include "ntp_stdlib.h"
-
-u_int32_t
-netof(num)
- u_int32_t num;
-{
- register u_int32_t netnum;
-
- netnum = num;
- if(IN_CLASSC(netnum))
- netnum &= IN_CLASSC_NET;
- else if (IN_CLASSB(netnum))
- netnum &= IN_CLASSB_NET;
- else /* treat all other like class A */
- netnum &= IN_CLASSA_NET;
- return netnum;
-}
OpenPOWER on IntegriCloud