summaryrefslogtreecommitdiffstats
path: root/lib/libncp/ncpl_conn.c
diff options
context:
space:
mode:
authorimp <imp@FreeBSD.org>2003-04-04 04:16:06 +0000
committerimp <imp@FreeBSD.org>2003-04-04 04:16:06 +0000
commit5926797d5461f3fbb87d81cca2d176413178c7e5 (patch)
tree466a3e375defc4b0f08da3a7c8680820e09021fc /lib/libncp/ncpl_conn.c
parent578041b6e27115c86e4d35a8c9030e1527f958db (diff)
downloadFreeBSD-src-5926797d5461f3fbb87d81cca2d176413178c7e5.zip
FreeBSD-src-5926797d5461f3fbb87d81cca2d176413178c7e5.tar.gz
No need to have ifdef < FreeBSD 4.0-current in here. Remove it to
avoid false positive while searching for __FreeBSD_version abuse.
Diffstat (limited to 'lib/libncp/ncpl_conn.c')
-rw-r--r--lib/libncp/ncpl_conn.c8
1 files changed, 0 insertions, 8 deletions
diff --git a/lib/libncp/ncpl_conn.c b/lib/libncp/ncpl_conn.c
index 0ae7a1c..f0e118a 100644
--- a/lib/libncp/ncpl_conn.c
+++ b/lib/libncp/ncpl_conn.c
@@ -276,11 +276,7 @@ int
ncp_conn_cnt(void) {
int error, cnt = 0, len = sizeof(cnt);
-#if __FreeBSD_version < 400001
- error = sysctlbyname("net.ipx.ncp.conn_cnt", &cnt, &len, NULL, 0);
-#else
error = sysctlbyname("net.ncp.conn_cnt", &cnt, &len, NULL, 0);
-#endif
if (error) cnt = 0;
return cnt;
}
@@ -394,11 +390,7 @@ ncp_conn_list(void) {
len = cnt*(sizeof(struct ncp_conn_stat))+sizeof(int);
p = malloc(len);
if (p == NULL) return NULL;
-#if __FreeBSD_version < 400001
- error = sysctlbyname("net.ipx.ncp.conn_stat", p, &len, NULL, 0);
-#else
error = sysctlbyname("net.ncp.conn_stat", p, &len, NULL, 0);
-#endif
if (error) {
free(p);
p = NULL;
OpenPOWER on IntegriCloud