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 weprovidedarracount()sothatwedon'tneedto...



details:   https://anonhg.NetBSD.org/src/rev/3563b5c7912b
branches:  trunk
changeset: 761793:3563b5c7912b
user:      christos <christos%NetBSD.org@localhost>
date:      Mon Feb 07 23:56:18 2011 +0000

description:
weprovidedarracount()sothatwedon'tneedtosqueezethespacesout.

diffstat:

 usr.bin/xlint/lint1/mkops |  4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diffs (19 lines):

diff -r fcb4468c1b07 -r 3563b5c7912b usr.bin/xlint/lint1/mkops
--- a/usr.bin/xlint/lint1/mkops Mon Feb 07 23:22:18 2011 +0000
+++ b/usr.bin/xlint/lint1/mkops Mon Feb 07 23:56:18 2011 +0000
@@ -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");



Home | Main Index | Thread Index | Old Index