X-Git-Url: http://erislabs.net/gitweb/?a=blobdiff_plain;f=lib%2Fgetopt1.c;h=5acd2245af0ada261f56af989eb6d444110edf0f;hb=5131be5b019b1110cd597012b63e48886aaaafc7;hp=2ceff8ec8426a11911da42290ff19b068ffc8501;hpb=06ee59a585b78f1071e246c1a8c3e0d3731388b0;p=gnulib.git diff --git a/lib/getopt1.c b/lib/getopt1.c index 2ceff8ec8..5acd2245a 100644 --- a/lib/getopt1.c +++ b/lib/getopt1.c @@ -15,7 +15,7 @@ You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, - Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ + Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ #ifdef HAVE_CONFIG_H #include @@ -41,10 +41,11 @@ #endif int -getopt_long (int argc, char **argv, const char *options, +getopt_long (int argc, char *__getopt_argv_const *argv, const char *options, const struct option *long_options, int *opt_index) { - return _getopt_internal (argc, argv, options, long_options, opt_index, 0, 0); + return _getopt_internal (argc, (char **) argv, options, long_options, + opt_index, 0, 0); } int @@ -62,10 +63,12 @@ _getopt_long_r (int argc, char **argv, const char *options, instead. */ int -getopt_long_only (int argc, char **argv, const char *options, +getopt_long_only (int argc, char *__getopt_argv_const *argv, + const char *options, const struct option *long_options, int *opt_index) { - return _getopt_internal (argc, argv, options, long_options, opt_index, 1, 0); + return _getopt_internal (argc, (char **) argv, options, long_options, + opt_index, 1, 0); } int