kill #ifndef __NetBSD code (yea, I assume it meant __NetBSD__)
This commit is contained in:
parent
cec76b1282
commit
7fa79282e3
|
@ -33,7 +33,7 @@
|
|||
*/
|
||||
|
||||
#include <sys/cdefs.h>
|
||||
__RCSID("$NetBSD: ctx.c,v 1.14 2009/09/06 18:38:17 pooka Exp $");
|
||||
__RCSID("$NetBSD: ctx.c,v 1.15 2009/09/06 20:07:03 pooka Exp $");
|
||||
|
||||
#include <sys/param.h>
|
||||
#include <sys/sysctl.h>
|
||||
|
@ -624,22 +624,6 @@ smb_ctx_gethandle(struct smb_ctx *ctx)
|
|||
return ENOENT;
|
||||
}
|
||||
|
||||
#ifndef __NetBSD
|
||||
/*
|
||||
* This is a compatibility with old /dev/net/nsmb device
|
||||
*/
|
||||
for (i = 0; i < 1024; i++) {
|
||||
snprintf(buf, sizeof(buf), "/dev/net/%s%d", NSMB_NAME, i);
|
||||
fd = open(buf, O_RDWR);
|
||||
if (fd >= 0) {
|
||||
ctx->ct_fd = fd;
|
||||
return 0;
|
||||
}
|
||||
if (errno == ENOENT)
|
||||
return ENOENT;
|
||||
}
|
||||
#endif
|
||||
|
||||
return ENOENT;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue