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 *);