Source-Changes-HG archive

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

[src/trunk]: src/usr.bin/head Make eval a local variable.



details:   https://anonhg.NetBSD.org/src/rev/6ef00b0f98c2
branches:  trunk
changeset: 753527:6ef00b0f98c2
user:      joerg <joerg%NetBSD.org@localhost>
date:      Wed Mar 31 15:01:51 2010 +0000

description:
Make eval a local variable.

diffstat:

 usr.bin/head/head.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (34 lines):

diff -r 2327934ccf35 -r 6ef00b0f98c2 usr.bin/head/head.c
--- a/usr.bin/head/head.c       Wed Mar 31 15:01:02 2010 +0000
+++ b/usr.bin/head/head.c       Wed Mar 31 15:01:51 2010 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: head.c,v 1.20 2010/03/31 15:01:02 joerg Exp $  */
+/*     $NetBSD: head.c,v 1.21 2010/03/31 15:01:51 joerg Exp $  */
 
 /*
  * Copyright (c) 1980, 1987, 1992, 1993
@@ -39,7 +39,7 @@
 #if 0
 static char sccsid[] = "@(#)head.c     8.2 (Berkeley) 5/4/95";
 #else
-__RCSID("$NetBSD: head.c,v 1.20 2010/03/31 15:01:02 joerg Exp $");
+__RCSID("$NetBSD: head.c,v 1.21 2010/03/31 15:01:51 joerg Exp $");
 #endif
 #endif /* not lint */
 
@@ -65,7 +65,6 @@
 static void obsolete(char *[]);
 __dead static void usage(void);
 
-int eval = 0;
 
 int
 main(int argc, char *argv[])
@@ -76,6 +75,7 @@
        long linecnt;
        long bytecnt;
        char *ep;
+       int eval = 0;
        int qflag = 0;
        int vflag = 0;
 



Home | Main Index | Thread Index | Old Index