Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/dist/smbfs/lib/smb kill #ifndef __NetBSD code (yea, I assume...
details: https://anonhg.NetBSD.org/src/rev/d5ed4a49e7f9
branches: trunk
changeset: 747233:d5ed4a49e7f9
user: pooka <pooka%NetBSD.org@localhost>
date: Sun Sep 06 20:07:03 2009 +0000
description:
kill #ifndef __NetBSD code (yea, I assume it meant __NetBSD__)
diffstat:
dist/smbfs/lib/smb/ctx.c | 18 +-----------------
1 files changed, 1 insertions(+), 17 deletions(-)
diffs (35 lines):
diff -r 0067234d273a -r d5ed4a49e7f9 dist/smbfs/lib/smb/ctx.c
--- a/dist/smbfs/lib/smb/ctx.c Sun Sep 06 20:02:49 2009 +0000
+++ b/dist/smbfs/lib/smb/ctx.c Sun Sep 06 20:07:03 2009 +0000
@@ -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 @@
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;
}
Home |
Main Index |
Thread Index |
Old Index