diff options
author | imp <imp@FreeBSD.org> | 2003-04-04 04:16:06 +0000 |
---|---|---|
committer | imp <imp@FreeBSD.org> | 2003-04-04 04:16:06 +0000 |
commit | 5926797d5461f3fbb87d81cca2d176413178c7e5 (patch) | |
tree | 466a3e375defc4b0f08da3a7c8680820e09021fc /lib | |
parent | 578041b6e27115c86e4d35a8c9030e1527f958db (diff) | |
download | FreeBSD-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')
-rw-r--r-- | lib/libncp/ncpl_conn.c | 8 | ||||
-rw-r--r-- | lib/libncp/ncpl_subr.c | 4 |
2 files changed, 0 insertions, 12 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; diff --git a/lib/libncp/ncpl_subr.c b/lib/libncp/ncpl_subr.c index b534995..c3d64d5 100644 --- a/lib/libncp/ncpl_subr.c +++ b/lib/libncp/ncpl_subr.c @@ -248,11 +248,7 @@ ncp_initlib(void){ if (ncp_initialized) return 0; -#if __FreeBSD_version < 400001 - error = sysctlbyname("net.ipx.ncp.version", &kv, &kvlen, NULL, 0); -#else error = sysctlbyname("net.ncp.version", &kv, &kvlen, NULL, 0); -#endif if (error) { fprintf(stderr, "%s: kernel module is old, please recompile it.\n", __FUNCTION__); return error; |