Module Name: src Committed By: christos Date: Mon Feb 7 23:56:18 UTC 2011
Modified Files: src/usr.bin/xlint/lint1: mkops Log Message: weprovidedarracount()sothatwedon'tneedtosqueezethespacesout. To generate a diff of this commit: cvs rdiff -u -r1.7 -r1.8 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.7 src/usr.bin/xlint/lint1/mkops:1.8 --- src/usr.bin/xlint/lint1/mkops:1.7 Sun Feb 6 19:26:27 2011 +++ src/usr.bin/xlint/lint1/mkops Mon Feb 7 18:56:18 2011 @@ -1,5 +1,5 @@ #!/bin/sh - -# $NetBSD: mkops,v 1.7 2011/02/07 00:26:27 christos Exp $ +# $NetBSD: mkops,v 1.8 2011/02/07 23:56:18 christos Exp $ # # Copyright (c) 2011 The NetBSD Foundation, Inc. # All rights reserved. @@ -122,7 +122,7 @@ printf("{\n"); printf("\tsize_t i;\n"); printf("\n"); - printf("\tfor (i=0; i<sizeof(imods)/sizeof(imods[0]); 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");