Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/i386/stand/netboot Fix "suggest parentheses around ...
details: https://anonhg.NetBSD.org/src/rev/b508f7eb5b4c
branches: trunk
changeset: 495508:b508f7eb5b4c
user: simonb <simonb%NetBSD.org@localhost>
date: Sun Jul 30 06:11:38 2000 +0000
description:
Fix "suggest parentheses around assignment ..." warning in normally
unused code segment.
diffstat:
sys/arch/i386/stand/netboot/dev_net.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diffs (18 lines):
diff -r 59a9f69eb8f1 -r b508f7eb5b4c sys/arch/i386/stand/netboot/dev_net.c
--- a/sys/arch/i386/stand/netboot/dev_net.c Sun Jul 30 06:10:43 2000 +0000
+++ b/sys/arch/i386/stand/netboot/dev_net.c Sun Jul 30 06:11:38 2000 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: dev_net.c,v 1.8 1999/05/07 16:19:28 drochner Exp $ */
+/* $NetBSD: dev_net.c,v 1.9 2000/07/30 06:11:38 simonb Exp $ */
/*
* Copyright (c) 1995 Gordon W. Ross
@@ -108,7 +108,7 @@
int num, i;
/* XXX (some) tftp servers don't like leading "/" */
for (num = 0; bootfile[num] == '/'; num++);
- for (i = 0; bootfile[i] = bootfile[i + num]; i++);
+ for (i = 0; (bootfile[i] = bootfile[i + num]) != 0; i++);
#endif
printf("boot: client IP address: %s\n",
Home |
Main Index |
Thread Index |
Old Index