Source-Changes-HG archive

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

[src/trunk]: src/usr.bin/su Put declaration of pwbuf[] back before any code, ...



details:   https://anonhg.NetBSD.org/src/rev/2d4f8d19bf07
branches:  trunk
changeset: 579955:2d4f8d19bf07
user:      he <he%NetBSD.org@localhost>
date:      Sat Apr 02 16:12:52 2005 +0000

description:
Put declaration of pwbuf[] back before any code, so this compiles with
older versions of gcc again.

diffstat:

 usr.bin/su/su_pam.c |  7 ++++---
 1 files changed, 4 insertions(+), 3 deletions(-)

diffs (32 lines):

diff -r 434fb132ab8f -r 2d4f8d19bf07 usr.bin/su/su_pam.c
--- a/usr.bin/su/su_pam.c       Sat Apr 02 08:21:36 2005 +0000
+++ b/usr.bin/su/su_pam.c       Sat Apr 02 16:12:52 2005 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: su_pam.c,v 1.7 2005/03/30 01:16:22 christos Exp $      */
+/*     $NetBSD: su_pam.c,v 1.8 2005/04/02 16:12:52 he Exp $    */
 
 /*
  * Copyright (c) 1988 The Regents of the University of California.
@@ -40,7 +40,7 @@
 #if 0
 static char sccsid[] = "@(#)su.c       8.3 (Berkeley) 4/2/94";*/
 #else
-__RCSID("$NetBSD: su_pam.c,v 1.7 2005/03/30 01:16:22 christos Exp $");
+__RCSID("$NetBSD: su_pam.c,v 1.8 2005/04/02 16:12:52 he Exp $");
 #endif
 #endif /* not lint */
 
@@ -101,11 +101,12 @@
        const void *newuser;
        login_cap_t *lc;
        pam_handle_t *pamh = NULL;
+       char pwbuf[1024];
 #ifdef PAM_DEBUG
        extern int _openpam_debug;
+
        _openpam_debug = 1;
 #endif
-       char pwbuf[1024];
 
        asme = asthem = fastlogin = 0;
        gohome = 1;



Home | Main Index | Thread Index | Old Index