diff options
author | Herb Lewis <herb@samba.org> | 2001-10-23 17:39:03 +0000 |
---|---|---|
committer | Herb Lewis <herb@samba.org> | 2001-10-23 17:39:03 +0000 |
commit | 6a386434723f37b0c211628a789afb01b9c2dfab (patch) | |
tree | 4d6cd6ee26858086854116785b0f2e0ebbd1953b /source3 | |
parent | 053f21feda024bbe6dd41de481794966008b6b0e (diff) | |
download | samba-6a386434723f37b0c211628a789afb01b9c2dfab.tar.gz samba-6a386434723f37b0c211628a789afb01b9c2dfab.tar.bz2 samba-6a386434723f37b0c211628a789afb01b9c2dfab.zip |
get rid of compiler warnings
(This used to be commit 3fed17c537985177d8f54d03b71fda04ff930d5d)
Diffstat (limited to 'source3')
-rw-r--r-- | source3/popt/popt.c | 2 | ||||
-rw-r--r-- | source3/popt/popt.h | 2 |
2 files changed, 2 insertions, 2 deletions
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); |