Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/usr.bin/xlint/lint1 fix missing comparison
details: https://anonhg.NetBSD.org/src/rev/0d85f3bf8c5c
branches: trunk
changeset: 761708:0d85f3bf8c5c
user: christos <christos%NetBSD.org@localhost>
date: Sat Feb 05 19:10:40 2011 +0000
description:
fix missing comparison
diffstat:
usr.bin/xlint/lint1/mkops | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diffs (19 lines):
diff -r b1ad7499ac8f -r 0d85f3bf8c5c usr.bin/xlint/lint1/mkops
--- a/usr.bin/xlint/lint1/mkops Sat Feb 05 17:29:48 2011 +0000
+++ b/usr.bin/xlint/lint1/mkops Sat Feb 05 19:10:40 2011 +0000
@@ -1,5 +1,5 @@
#!/bin/sh -
-# $NetBSD: mkops,v 1.3 2011/02/05 17:29:48 christos Exp $
+# $NetBSD: mkops,v 1.4 2011/02/05 19:10:40 christos Exp $
#
# Copyright (c) 2011 The NetBSD Foundation, Inc.
# All rights reserved.
@@ -119,7 +119,7 @@
printf("{\n");
printf("\tsize_t i;\n");
printf("\n");
- printf("\tfor (i = 0; __arraycount(imods); i++)\n");
+ printf("\tfor (i = 0; i < __arraycount(imods); i++)\n");
printf("\t\tif (imods[i].ok)\n");
printf("\t\t\tSTRUCT_ASSIGN(modtab[i], imods[i].m);\n");
printf("}\n");
Home |
Main Index |
Thread Index |
Old Index