Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/external/bsd/cron/dist renamed len -> i but did not fix it e...



details:   https://anonhg.NetBSD.org/src/rev/f2ed4cb26cd3
branches:  trunk
changeset: 770330:f2ed4cb26cd3
user:      christos <christos%NetBSD.org@localhost>
date:      Wed Oct 12 19:48:24 2011 +0000

description:
renamed len -> i but did not fix it everywhere.

diffstat:

 external/bsd/cron/dist/database.c |  8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)

diffs (29 lines):

diff -r b8486ee9f77f -r f2ed4cb26cd3 external/bsd/cron/dist/database.c
--- a/external/bsd/cron/dist/database.c Wed Oct 12 17:03:49 2011 +0000
+++ b/external/bsd/cron/dist/database.c Wed Oct 12 19:48:24 2011 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: database.c,v 1.4 2011/10/12 16:39:48 christos Exp $    */
+/*     $NetBSD: database.c,v 1.5 2011/10/12 19:48:24 christos Exp $    */
 
 /* Copyright 1988,1990,1993,1994 by Paul Vixie
  * All rights reserved
@@ -25,7 +25,7 @@
 #if 0
 static char rcsid[] = "Id: database.c,v 1.7 2004/01/23 18:56:42 vixie Exp";
 #else
-__RCSID("$NetBSD: database.c,v 1.4 2011/10/12 16:39:48 christos Exp $");
+__RCSID("$NetBSD: database.c,v 1.5 2011/10/12 19:48:24 christos Exp $");
 #endif
 #endif
 
@@ -96,8 +96,8 @@
                /* ... or look leftover crap */
                for (i = 0; i < __arraycount(junk); i++) {
                        char *p;
-                       if ((p = strstr(fname, junk[len])) != NULL &&
-                           p[strlen(junk[len]) - 1] == '\0')
+                       if ((p = strstr(fname, junk[i])) != NULL &&
+                           p[strlen(junk[i]) - 1] == '\0')
                                break;
                }
                if (i != __arraycount(junk))



Home | Main Index | Thread Index | Old Index