Module Name: src
Committed By: snj
Date: Thu Jul 2 01:43:16 UTC 2009
Modified Files:
src/dist/ipf/ipsend: sock.c
Log Message:
Fix two problems in a conditional:
- __NetBSD__Version__ -> __NetBSD_Version__
- ">= 599001200" -> "< 599001200"
This worked on current because of the __ typo.
Spotted by Geoff Wing.
To generate a diff of this commit:
cvs rdiff -u -r1.15 -r1.16 src/dist/ipf/ipsend/sock.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/ipf/ipsend/sock.c
diff -u src/dist/ipf/ipsend/sock.c:1.15 src/dist/ipf/ipsend/sock.c:1.16
--- src/dist/ipf/ipsend/sock.c:1.15 Sun May 24 21:41:44 2009
+++ src/dist/ipf/ipsend/sock.c Thu Jul 2 01:43:15 2009
@@ -1,4 +1,4 @@
-/* $NetBSD: sock.c,v 1.15 2009/05/24 21:41:44 ad Exp $ */
+/* $NetBSD: sock.c,v 1.16 2009/07/02 01:43:15 snj Exp $ */
/*
* sock.c (C) 1995-1998 Darren Reed
@@ -329,7 +329,7 @@
t = NULL;
o = (struct file **)calloc(1, sizeof(*o) * (fd->fd_lastfile + 1));
-#if defined(__NetBSD_Version__) && __NetBSD__Version__ >= 599001200
+#if defined(__NetBSD_Version__) && __NetBSD_Version__ < 599001200
if (KMCPY(o, fd->fd_ofiles, (fd->fd_lastfile + 1) * sizeof(*o)) == -1)
{
fprintf(stderr, "read(%#lx,%#lx,%lu) - u_ofile - failed\n",