Source-Changes-HG archive

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

[src/trunk]: src/usr.bin/who - don't hide a global.



details:   https://anonhg.NetBSD.org/src/rev/1be00aeb907c
branches:  trunk
changeset: 534684:1be00aeb907c
user:      christos <christos%NetBSD.org@localhost>
date:      Thu Aug 01 23:36:30 2002 +0000

description:
- don't hide a global.

diffstat:

 usr.bin/who/utmpentry.c |  8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)

diffs (36 lines):

diff -r 2c378a097367 -r 1be00aeb907c usr.bin/who/utmpentry.c
--- a/usr.bin/who/utmpentry.c   Thu Aug 01 23:23:07 2002 +0000
+++ b/usr.bin/who/utmpentry.c   Thu Aug 01 23:36:30 2002 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: utmpentry.c,v 1.1 2002/08/01 23:23:08 christos Exp $   */
+/*     $NetBSD: utmpentry.c,v 1.2 2002/08/01 23:36:30 christos Exp $   */
 
 /*-
  * Copyright (c) 2002 The NetBSD Foundation, Inc.
@@ -38,7 +38,7 @@
 
 #include <sys/cdefs.h>
 #ifndef lint
-__RCSID("$NetBSD: utmpentry.c,v 1.1 2002/08/01 23:23:08 christos Exp $");
+__RCSID("$NetBSD: utmpentry.c,v 1.2 2002/08/01 23:36:30 christos Exp $");
 #endif
 
 #include <sys/stat.h>
@@ -154,7 +154,7 @@
                numutmp = 0;
        }
        while (ep) {
-               struct utmpentry *sep;
+               struct utmpentry *sep = ep;
                ep = ep->next;
                free(sep);
        }
@@ -169,7 +169,7 @@
 #ifdef SUPPORT_UTMP
        struct utmp *ut;
 #endif
-       struct utmpentry *ep, *ehead = NULL;
+       struct utmpentry *ep;
 #if defined(SUPPORT_UTMP) && defined(SUPPORT_UTMPX)
        int what = setup(fname);
        struct utmpentry **nextp = &ehead;



Home | Main Index | Thread Index | Old Index