aboutsummaryrefslogtreecommitdiff
path: root/src/util
diff options
context:
space:
mode:
Diffstat (limited to 'src/util')
-rw-r--r--src/util/getopt.c9
1 files changed, 0 insertions, 9 deletions
diff --git a/src/util/getopt.c b/src/util/getopt.c
index e525525d7..b8a295fae 100644
--- a/src/util/getopt.c
+++ b/src/util/getopt.c
@@ -506,7 +506,6 @@ GN_getopt_internal (int argc,
506{ 506{
507 static int __getopt_initialized = 0; 507 static int __getopt_initialized = 0;
508 static int GNopterr = 1; 508 static int GNopterr = 1;
509 static int GNoptopt = '?';
510 509
511 GNoptarg = NULL; 510 GNoptarg = NULL;
512 511
@@ -670,7 +669,6 @@ GN_getopt_internal (int argc,
670 argv[0], argv[GNoptind]); 669 argv[0], argv[GNoptind]);
671 nextchar += strlen (nextchar); 670 nextchar += strlen (nextchar);
672 GNoptind++; 671 GNoptind++;
673 GNoptopt = 0;
674 return '?'; 672 return '?';
675 } 673 }
676 674
@@ -703,8 +701,6 @@ GN_getopt_internal (int argc,
703 pfound->name); 701 pfound->name);
704 } 702 }
705 nextchar += strlen (nextchar); 703 nextchar += strlen (nextchar);
706
707 GNoptopt = pfound->val;
708 return '?'; 704 return '?';
709 } 705 }
710 } 706 }
@@ -723,7 +719,6 @@ GN_getopt_internal (int argc,
723 argv[0], argv[GNoptind - 1]); 719 argv[0], argv[GNoptind - 1]);
724 } 720 }
725 nextchar += strlen (nextchar); 721 nextchar += strlen (nextchar);
726 GNoptopt = pfound->val;
727 return (optstring[0] == ':') ? ':' : '?'; 722 return (optstring[0] == ':') ? ':' : '?';
728 } 723 }
729 } 724 }
@@ -758,7 +753,6 @@ GN_getopt_internal (int argc,
758 } 753 }
759 nextchar = (char *) ""; 754 nextchar = (char *) "";
760 GNoptind++; 755 GNoptind++;
761 GNoptopt = 0;
762 return '?'; 756 return '?';
763 } 757 }
764 } 758 }
@@ -783,7 +777,6 @@ GN_getopt_internal (int argc,
783 else 777 else
784 fprintf (stderr, _("%s: invalid option -- %c\n"), argv[0], c); 778 fprintf (stderr, _("%s: invalid option -- %c\n"), argv[0], c);
785 } 779 }
786 GNoptopt = c;
787 return '?'; 780 return '?';
788 } 781 }
789 /* Convenience. Treat POSIX -W foo same as long option --foo */ 782 /* Convenience. Treat POSIX -W foo same as long option --foo */
@@ -813,7 +806,6 @@ GN_getopt_internal (int argc,
813 fprintf (stderr, _("%s: option requires an argument -- %c\n"), 806 fprintf (stderr, _("%s: option requires an argument -- %c\n"),
814 argv[0], c); 807 argv[0], c);
815 } 808 }
816 GNoptopt = c;
817 if (optstring[0] == ':') 809 if (optstring[0] == ':')
818 c = ':'; 810 c = ':';
819 else 811 else
@@ -944,7 +936,6 @@ GN_getopt_internal (int argc,
944 _("%s: option requires an argument -- %c\n"), 936 _("%s: option requires an argument -- %c\n"),
945 argv[0], c); 937 argv[0], c);
946 } 938 }
947 GNoptopt = c;
948 if (optstring[0] == ':') 939 if (optstring[0] == ':')
949 c = ':'; 940 c = ':';
950 else 941 else