get rid of compiler warnings
authorHerb Lewis <herb@samba.org>
Tue, 23 Oct 2001 17:39:03 +0000 (17:39 +0000)
committerHerb Lewis <herb@samba.org>
Tue, 23 Oct 2001 17:39:03 +0000 (17:39 +0000)
(This used to be commit 3fed17c537985177d8f54d03b71fda04ff930d5d)

source3/popt/popt.c
source3/popt/popt.h

index aef79566e76004d9379a193c0b76dce40baa6778..9fa8650312cd87cbad54a282dcdec005d3bd17f8 100644 (file)
@@ -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");
index e6fa8bdffb0d7f9476b62fe5d87d4550a93310df..c33cedaec998ad246bdb86b552158398538e3a20 100644 (file)
@@ -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);