Module Name: src
Committed By: christos
Date: Sat Feb 5 19:10:40 UTC 2011
Modified Files:
src/usr.bin/xlint/lint1: mkops
Log Message:
fix missing comparison
To generate a diff of this commit:
cvs rdiff -u -r1.3 -r1.4 src/usr.bin/xlint/lint1/mkops
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/usr.bin/xlint/lint1/mkops
diff -u src/usr.bin/xlint/lint1/mkops:1.3 src/usr.bin/xlint/lint1/mkops:1.4
--- src/usr.bin/xlint/lint1/mkops:1.3 Sat Feb 5 12:29:48 2011
+++ src/usr.bin/xlint/lint1/mkops Sat Feb 5 14:10:40 2011
@@ -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");