r2760: Another patch from The Written Word. Don't declare function prototypes
authorTim Potter <tpot@samba.org>
Fri, 1 Oct 2004 02:59:43 +0000 (02:59 +0000)
committerGerald (Jerry) Carter <jerry@samba.org>
Wed, 10 Oct 2007 15:52:51 +0000 (10:52 -0500)
inside a function.  Bugzilla #1762.
(This used to be commit 002cdd4a5b34611983a32018248f9fe122c4111a)

source3/nsswitch/winbind_nss_aix.c

index a1bffccc66b093ee7785fec114384e44528d2e3f..c90dc2f3f100b76e81d133d0b3e827ba3583509c 100644 (file)
@@ -159,12 +159,13 @@ static unsigned decode_id(const char *name)
        return id;
 }
 
+static struct passwd *wb_aix_getpwuid(uid_t uid);
+
 static char *decode_user(const char *name)
 {
        struct passwd *pwd;
        unsigned id;
        char *ret;
-       static struct passwd *wb_aix_getpwuid(uid_t uid);
 
        sscanf(name+1, "%u", &id);
        pwd = wb_aix_getpwuid(id);