aboutsummaryrefslogtreecommitdiff
path: root/src/util/getopt.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/util/getopt.c')
-rw-r--r--src/util/getopt.c12
1 files changed, 8 insertions, 4 deletions
diff --git a/src/util/getopt.c b/src/util/getopt.c
index db81d1c3d..eb79db757 100644
--- a/src/util/getopt.c
+++ b/src/util/getopt.c
@@ -194,7 +194,8 @@ static char *posixly_correct;
194/* Avoid depending on library functions or files 194/* Avoid depending on library functions or files
195 whose names are inconsistent. */ 195 whose names are inconsistent. */
196 196
197char *getenv (); 197char *
198getenv ();
198 199
199static char * 200static char *
200my_index (str, chr) 201my_index (str, chr)
@@ -218,7 +219,8 @@ my_index (str, chr)
218#if !defined (__STDC__) || !__STDC__ 219#if !defined (__STDC__) || !__STDC__
219/* gcc with -traditional declares the built-in strlen to return int, 220/* gcc with -traditional declares the built-in strlen to return int,
220 and has done so at least since version 2.4.5. -- rms. */ 221 and has done so at least since version 2.4.5. -- rms. */
221extern int strlen (const char *); 222extern int
223strlen (const char *);
222#endif /* not __STDC__ */ 224#endif /* not __STDC__ */
223#endif /* __GNUC__ */ 225#endif /* __GNUC__ */
224 226
@@ -283,7 +285,8 @@ text_set_element (__libc_subinit, store_args_and_env);
283 the new indices of the non-options in ARGV after they are moved. */ 285 the new indices of the non-options in ARGV after they are moved. */
284 286
285#if defined (__STDC__) && __STDC__ 287#if defined (__STDC__) && __STDC__
286static void exchange (char **); 288static void
289exchange (char **);
287#endif 290#endif
288 291
289static void 292static void
@@ -370,7 +373,8 @@ exchange (argv)
370/* Initialize the internal data when the first call is made. */ 373/* Initialize the internal data when the first call is made. */
371 374
372#if defined (__STDC__) && __STDC__ 375#if defined (__STDC__) && __STDC__
373static const char *_getopt_initialize (int, char *const *, const char *); 376static const char *
377_getopt_initialize (int, char *const *, const char *);
374#endif 378#endif
375static const char * 379static const char *
376_getopt_initialize (argc, argv, optstring) 380_getopt_initialize (argc, argv, optstring)