From 6a386434723f37b0c211628a789afb01b9c2dfab Mon Sep 17 00:00:00 2001 From: Herb Lewis Date: Tue, 23 Oct 2001 17:39:03 +0000 Subject: get rid of compiler warnings (This used to be commit 3fed17c537985177d8f54d03b71fda04ff930d5d) --- source3/popt/popt.c | 2 +- source3/popt/popt.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'source3') diff --git a/source3/popt/popt.c b/source3/popt/popt.c index aef79566e7..9fa8650312 100644 --- a/source3/popt/popt.c +++ b/source3/popt/popt.c @@ -710,7 +710,7 @@ const char * poptBadOption(poptContext con, int flags) { #define POPT_ERROR_BADQUOTE -15 /* only from poptParseArgString() */ #define POPT_ERROR_ERRNO -16 /* only from poptParseArgString() */ -const char *const poptStrerror(const int error) { +const char *poptStrerror(const int error) { switch (error) { case POPT_ERROR_NOARG: return POPT_("missing argument"); diff --git a/source3/popt/popt.h b/source3/popt/popt.h index e6fa8bdffb..c33cedaec9 100644 --- a/source3/popt/popt.h +++ b/source3/popt/popt.h @@ -114,7 +114,7 @@ int poptDupArgv(int argc, const char **argv, /*@out@*/ int * argcPtr, /*@out@*/ const char *** argvPtr); int poptParseArgvString(const char * s, /*@out@*/ int * argcPtr, /*@out@*/ const char *** argvPtr); -/*@observer@*/ const char *const poptStrerror(const int error); +/*@observer@*/ const char *poptStrerror(const int error); void poptSetExecPath(poptContext con, const char * path, int allowAbsolute); void poptPrintHelp(poptContext con, FILE * f, int flags); void poptPrintUsage(poptContext con, FILE * f, int flags); -- cgit