Module Name: src
Committed By: pooka
Date: Sun Feb 6 23:03:02 UTC 2011
Modified Files:
src/usr.bin/xlint/lint1: mkops
Log Message:
don't use __arraycount in tools
To generate a diff of this commit:
cvs rdiff -u -r1.5 -r1.6 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.5 src/usr.bin/xlint/lint1/mkops:1.6
--- src/usr.bin/xlint/lint1/mkops:1.5 Sun Feb 6 18:28:22 2011
+++ src/usr.bin/xlint/lint1/mkops Sun Feb 6 23:03:02 2011
@@ -1,5 +1,5 @@
#!/bin/sh -
-# $NetBSD: mkops,v 1.5 2011/02/06 18:28:22 christos Exp $
+# $NetBSD: mkops,v 1.6 2011/02/06 23:03:02 pooka 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; i < __arraycount(imods); i++)\n");
+ printf("\tfor (i=0; i<sizeof(imods)/sizeof(imods[0]); i++)\n");
printf("\t\tif (imods[i].ok)\n");
printf("\t\t\tSTRUCT_ASSIGN(modtab[i], imods[i].m);\n");
printf("}\n");