1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-12-04 09:09:56 +00:00

No need to have ifdef < FreeBSD 4.0-current in here. Remove it to

avoid false positive while searching for __FreeBSD_version abuse.
This commit is contained in:
Warner Losh 2003-04-04 04:16:06 +00:00
parent 117f919160
commit 33c2c9a3fa
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=113043
2 changed files with 0 additions and 12 deletions

View File

@ -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;

View File

@ -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;