@@ -180,20 +180,15 @@ static char *my_index (const char *str, int chr);
180180extern char * getenv ();
181181#endif
182182
183- static int
184- my_strlen (str )
185- const char * str ;
183+ static int my_strlen (const char * str )
186184{
187185 int n = 0 ;
188186 while (* str ++ )
189187 n ++ ;
190188 return n ;
191189}
192190
193- static char *
194- my_index (str , chr )
195- const char * str ;
196- int chr ;
191+ static char * my_index (const char * str , int chr )
197192{
198193 while (* str )
199194 {
@@ -234,12 +229,10 @@ static int last_nonopt;
234229*/
235230
236231#if __STDC__ || defined(PROTO )
237- static void exchange (char * * argv );
232+ static void exchange (char * * argv );
238233#endif
239234
240- static void
241- exchange (argv )
242- char * * argv ;
235+ static void exchange (char * * argv )
243236{
244237 char * temp , * * first , * * last ;
245238
@@ -322,14 +315,13 @@ exchange (argv)
322315 If LONG_ONLY is nonzero, '-' as well as '--' can introduce
323316 long-named options. */
324317
325- int
326- _getopt_internal (argc , argv , optstring , longopts , longind , long_only )
327- int argc ;
328- char * const * argv ;
329- const char * optstring ;
330- const struct option * longopts ;
331- int * longind ;
332- int long_only ;
318+ int _getopt_internal (int argc ,
319+ char * const * argv ,
320+ const char * optstring ,
321+ const struct option * longopts ,
322+ int * longind ,
323+ int long_only
324+ )
333325{
334326 int option_index ;
335327
@@ -656,25 +648,23 @@ _getopt_internal (argc, argv, optstring, longopts, longind, long_only)
656648 }
657649}
658650
659- int
660- getopt (argc , argv , optstring )
661- int argc ;
662- char * const * argv ;
663- const char * optstring ;
651+ int getopt (int argc ,
652+ char * const * argv ,
653+ const char * optstring
654+ )
664655{
665656 return _getopt_internal (argc , argv , optstring ,
666657 (const struct option * ) 0 ,
667658 (int * ) 0 ,
668659 0 );
669660}
670661
671- int
672- getopt_long (argc , argv , options , long_options , opt_index )
673- int argc ;
674- char * const * argv ;
675- const char * options ;
676- const struct option * long_options ;
677- int * opt_index ;
662+ int getopt_long (int argc ,
663+ char * const * argv ,
664+ const char * options ,
665+ const struct option * long_options ,
666+ int * opt_index
667+ )
678668{
679669 return _getopt_internal (argc , argv , options , long_options , opt_index , 0 );
680670}
0 commit comments