summaryrefslogtreecommitdiffstats
path: root/source
diff options
context:
space:
mode:
authorTim Potter <tpot@samba.org>2004-10-01 02:59:43 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 10:52:51 -0500
commit002cdd4a5b34611983a32018248f9fe122c4111a (patch)
tree80f3b57bf1e48d427af449522f62bf2776b2d01c /source
parent4f8496ad626478c31e9372e07652d50f581256d0 (diff)
downloadsamba-002cdd4a5b34611983a32018248f9fe122c4111a.tar.gz
samba-002cdd4a5b34611983a32018248f9fe122c4111a.tar.xz
samba-002cdd4a5b34611983a32018248f9fe122c4111a.zip
r2760: Another patch from The Written Word. Don't declare function prototypes
inside a function. Bugzilla #1762.
Diffstat (limited to 'source')
-rw-r--r--source/nsswitch/winbind_nss_aix.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/source/nsswitch/winbind_nss_aix.c b/source/nsswitch/winbind_nss_aix.c
index a1bffccc66b..c90dc2f3f10 100644
--- a/source/nsswitch/winbind_nss_aix.c
+++ b/source/nsswitch/winbind_nss_aix.c
@@ -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);