summaryrefslogtreecommitdiff
path: root/devel/spiff/patches/patch-af
blob: 7dc36c37ed3539ac84898563e5798d7ec7cfae62 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
$NetBSD: patch-af,v 1.1 2007/10/05 21:14:00 rillig Exp $

Programming in C before 1989 must have been really painful.

--- parse.c.orig	1990-02-05 21:17:19.000000000 +0100
+++ parse.c	2007-10-05 23:08:43.000000000 +0200
@@ -68,9 +68,6 @@ static
 _P_in_alpha(chr)
 char chr;
 {
-#ifndef ATT
-	extern int index();
-#endif
 	/*
 	**	special case when string terminator
 	**	is handed to us
@@ -78,11 +75,7 @@ char chr;
 	if ('\0' == chr)
 		return(0);
 
-#ifdef ATT
-	return((int) strchr(_P_alpha,chr));
-#else
-	return((int) index(_P_alpha,chr));
-#endif
+	return strchr(_P_alpha,chr) != NULL;
 }
 
 void