summaryrefslogtreecommitdiff
path: root/source3/popt
diff options
context:
space:
mode:
authorHerb Lewis <herb@samba.org>2001-10-23 17:39:03 +0000
committerHerb Lewis <herb@samba.org>2001-10-23 17:39:03 +0000
commit6a386434723f37b0c211628a789afb01b9c2dfab (patch)
tree4d6cd6ee26858086854116785b0f2e0ebbd1953b /source3/popt
parent053f21feda024bbe6dd41de481794966008b6b0e (diff)
downloadsamba-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/popt')
-rw-r--r--source3/popt/popt.c2
-rw-r--r--source3/popt/popt.h2
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);