summaryrefslogtreecommitdiff
path: root/devel/unproven-pthreads/patches/patch-ab
blob: 75f44c55e309c2d67c57a5b58dedcfa125d24858 (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
$NetBSD: patch-ab,v 1.3 2000/11/29 17:08:08 agc Exp $

Patch from Tom Thai (without this patch, mysql will result in a wrong
date for "select now()")

--- gen/ctime.c	2000/11/29 16:21:13	1.1
+++ gen/ctime.c	2000/11/29 16:23:14
@@ -129,7 +129,7 @@
 ** Prototypes for static functions.
 */
 
-static long			detzcode __P((const char *));
+static int			detzcode __P((const char *));
 static const char *	getnum __P((const char *, int *, int, int));
 static const char *	getsecs __P((const char *, long *));
 static const char *	getoffset __P((const char *, long *));
@@ -175,9 +175,9 @@
 time_t			altzone = 0;
 #endif /* defined ALTZONE */
 
-static long detzcode(const char * codep)
+static int detzcode(const char * codep)
 {
-	long result;
+	int result;
 	int	i;
 
 	result = 0;