]> git.ipfire.org Git - thirdparty/nettle.git/commitdiff
* misc/getopt.h: Deleted __ from argument names in prototypes,
authorNiels Möller <nisse@lysator.liu.se>
Tue, 16 Nov 2004 07:30:46 +0000 (08:30 +0100)
committerNiels Möller <nisse@lysator.liu.se>
Tue, 16 Nov 2004 07:30:46 +0000 (08:30 +0100)
i.e. "argc", not "__argc". Needed for mingw compilation.

Rev: misc/getopt.h:1.2

getopt.h

index 18e102696cafb023e8eaf1c9edb990744ba56b56..76cf5eeeac1583afc403885c384293955d201163 100644 (file)
--- a/getopt.h
+++ b/getopt.h
@@ -141,23 +141,23 @@ struct option
 /* Many other libraries have conflicting prototypes for getopt, with
    differences in the consts, in stdlib.h.  To avoid compilation
    errors, only prototype getopt for the GNU C library.  */
-extern int getopt (int __argc, char *const *__argv, const char *__shortopts);
+extern int getopt (int argc, char *const *argv, const char *shortopts);
 # else /* not __GNU_LIBRARY__ */
 extern int getopt ();
 # endif /* __GNU_LIBRARY__ */
 
 # ifndef __need_getopt
-extern int getopt_long (int __argc, char *const *__argv, const char *__shortopts,
-                       const struct option *__longopts, int *__longind);
-extern int getopt_long_only (int __argc, char *const *__argv,
-                            const char *__shortopts,
-                            const struct option *__longopts, int *__longind);
+extern int getopt_long (int argc, char *const *argv, const char *shortopts,
+                       const struct option *longopts, int *longind);
+extern int getopt_long_only (int argc, char *const *argv,
+                            const char *shortopts,
+                            const struct option *longopts, int *longind);
 
 /* Internal only.  Users should not call this directly.  */
-extern int _getopt_internal (int __argc, char *const *__argv,
-                            const char *__shortopts,
-                            const struct option *__longopts, int *__longind,
-                            int __long_only);
+extern int _getopt_internal (int argc, char *const *argv,
+                            const char *shortopts,
+                            const struct option *longopts, int *longind,
+                            int long_only);
 # endif
 #else /* not __STDC__ */
 extern int getopt ();