Module Name:    src
Committed By:   pooka
Date:           Sun Sep  6 20:07:03 UTC 2009

Modified Files:
        src/dist/smbfs/lib/smb: ctx.c

Log Message:
kill #ifndef __NetBSD code (yea, I assume it meant __NetBSD__)


To generate a diff of this commit:
cvs rdiff -u -r1.14 -r1.15 src/dist/smbfs/lib/smb/ctx.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/dist/smbfs/lib/smb/ctx.c
diff -u src/dist/smbfs/lib/smb/ctx.c:1.14 src/dist/smbfs/lib/smb/ctx.c:1.15
--- src/dist/smbfs/lib/smb/ctx.c:1.14	Sun Sep  6 18:38:17 2009
+++ src/dist/smbfs/lib/smb/ctx.c	Sun Sep  6 20:07:03 2009
@@ -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;
 }
 

Reply via email to