freebsd-ports/devel/popt/files/patch-popt.3
Andrew Pantyukhin 2ec15bd3a7 - Remove qualifiers on some functions' return types
- This tweak pacifies gcc 4.x for ports depending
  on popt

Reported by:	pointyhat via kris
Discussed with:	rafan
2007-04-04 08:33:59 +00:00

20 lines
664 B
Groff

--- ./popt.3.orig Wed Apr 4 12:24:38 2007
+++ ./popt.3 Wed Apr 4 12:25:14 2007
@@ -24,7 +24,7 @@
.sp
.BI "const char ** poptGetArgs(poptContext " con );
.sp
-.BI "const char *const poptStrerror(const int " error );
+.BI "const char * poptStrerror(const int " error );
.sp
.BI "const char * poptBadOption(poptContext " con ", int " flags );
.sp
@@ -491,7 +491,7 @@
good error messages.
.HP
.nf
-.BI "const char *const poptStrerror(const int " error ");"
+.BI "const char * poptStrerror(const int " error ");"
.fi
This function takes a popt error code and returns a string describing
.RB "the error, just as with the standard " strerror() " function."