diff --git a/lib/libncp/ncpl_conn.c b/lib/libncp/ncpl_conn.c index 0ae7a1c6595a..f0e118a76edb 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 b534995d42b3..c3d64d56b3a5 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;