summaryrefslogtreecommitdiff
path: root/graphics/urt/patches/patch-ag
blob: 5cf3500744096a2e99a92ff8001f81c2dc1ddd40 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
$NetBSD: patch-ag,v 1.2 1999/02/10 15:10:47 frueauf Exp $

--- lib/getopt.c~	Tue Jan 28 10:18:23 1992
+++ lib/getopt.c	Wed Nov 25 23:57:31 1998
@@ -31,8 +31,6 @@
 
 static char	*scan = NULL;	/* Private scan pointer. */
 
-extern char	*index();
-
 int
 getopt(argc, argv, optstring)
 int argc;
@@ -62,7 +60,7 @@
     }
     
     c = *scan++;
-    place = index(optstring, c);
+    place = rle_index(optstring, c);
     
     if (place == NULL || c == ':') {
 	fprintf(stderr, "%s: unknown option -%c\n", argv[0], c);