From 4ac21ca652c20ea33fe85ffb564c875c90d0e4d1 Mon Sep 17 00:00:00 2001 From: nekral-guest Date: Sat, 14 Jun 2008 21:09:33 +0000 Subject: [PATCH] * lib/getdef.c: Fix the getdef_ulong() prototype. * lib/getdef.h: Fix the getdef_ulong() prototype. --- ChangeLog | 5 +++++ lib/getdef.c | 2 +- lib/getdef.h | 2 +- 3 files changed, 7 insertions(+), 2 deletions(-) diff --git a/ChangeLog b/ChangeLog index a01eec8b..5d030728 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2008-06-14 Nicolas François + + * lib/getdef.c: Fix the getdef_ulong() prototype. + * lib/getdef.h: Fix the getdef_ulong() prototype. + 2008-06-14 Nicolas François * src/lastlog.c: Use getrange to parse the range of users. diff --git a/lib/getdef.c b/lib/getdef.c index 02057de5..db1645a9 100644 --- a/lib/getdef.c +++ b/lib/getdef.c @@ -266,7 +266,7 @@ long getdef_long (const char *item, long dflt) * values are handled. */ -unsigned long getdef_ulong (const char *item, unsigned int dflt) +unsigned long getdef_ulong (const char *item, unsigned long dflt) { struct itemdef *d; diff --git a/lib/getdef.h b/lib/getdef.h index ce7212de..39e02a23 100644 --- a/lib/getdef.h +++ b/lib/getdef.h @@ -36,7 +36,7 @@ extern bool getdef_bool (const char *); extern long getdef_long (const char *, long); extern int getdef_num (const char *, int); -extern unsigned int getdef_ulong (const char *, unsigned long); +extern unsigned long getdef_ulong (const char *, unsigned long); extern unsigned int getdef_unum (const char *, unsigned int); extern char *getdef_str (const char *); extern int putdef_str (const char *, const char *); -- 2.40.0