diff options
author | Ed Schouten <ed@80386.nl> | 2012-09-15 20:26:57 +0200 |
---|---|---|
committer | Alan Coopersmith <alan.coopersmith@oracle.com> | 2012-12-16 11:59:30 -0800 |
commit | d6570f5188ac8b223a2ae8d1ef596f313938acca (patch) | |
tree | 237ad8bf6f77e4854f23d963a8ffa42bb886bd4c /sessreg.c | |
parent | 8963bc3df6d3e9627c82171c3c931616f27fd528 (diff) |
Make the `line' variable local to main().
It is only used within main(). This prevents a compilation failure when
building with -Wshadow.
Signed-off-by: Ed Schouten <ed@80386.nl>
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
Diffstat (limited to 'sessreg.c')
-rw-r--r-- | sessreg.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -90,7 +90,6 @@ static void set_utmpx (struct utmpx *u, const char *line, const char *user, static int wflag, uflag, lflag; static const char *wtmp_file, *utmp_file; -static char *line; #ifdef USE_UTMPX #ifdef HAVE_UPDWTMPX static const char *wtmpx_file = NULL; @@ -195,6 +194,7 @@ main (int argc, char **argv) #ifdef USE_UTMPX struct utmpx utmpx_entry; #endif + char * line = NULL; program_name = argv[0]; while (*++argv && **argv == '-') { |