these remove some 64bit warnings

from naddy@, thanks
This commit is contained in:
sturm 2002-12-15 17:52:44 +00:00
parent 9dbd196dc4
commit 62600d161c
3 changed files with 42 additions and 0 deletions

View File

@ -0,0 +1,11 @@
$OpenBSD: patch-byterun_floats_c,v 1.1 2002/12/15 17:52:44 sturm Exp $
--- byterun/floats.c.orig Sat Dec 14 03:16:10 2002
+++ byterun/floats.c Sat Dec 14 03:16:21 2002
@@ -16,6 +16,7 @@
#include <math.h>
#include <stdio.h>
#include <stdlib.h>
+#include <string.h>
#include "alloc.h"
#include "fail.h"
#include "memory.h"

View File

@ -0,0 +1,19 @@
$OpenBSD: patch-otherlibs_num_bignum_c_bz_c,v 1.1 2002/12/15 17:52:44 sturm Exp $
--- otherlibs/num/bignum/c/bz.c.orig Sat Dec 14 04:01:25 2002
+++ otherlibs/num/bignum/c/bz.c Sat Dec 14 04:01:47 2002
@@ -23,6 +23,7 @@
#include <malloc.h>
#include <values.h>
*/
+#include <sys/types.h>
#define NULL 0
#define max(a,b) (a<b ? b : a)
@@ -43,6 +44,7 @@
0)
extern char *malloc();
+extern size_t strlen();
/*** copyright ***/

View File

@ -0,0 +1,12 @@
$OpenBSD: patch-otherlibs_str_regex-0_12_regex_c,v 1.1 2002/12/15 17:52:44 sturm Exp $
--- otherlibs/str/regex-0.12/regex.c.orig Sat Dec 14 01:53:58 2002
+++ otherlibs/str/regex-0.12/regex.c Sat Dec 14 02:06:22 2002
@@ -3776,7 +3776,7 @@ re_match_2 (bufp, string1, size1, string
regstart[r] = old_regstart[r];
/* xx why this test? */
- if ((int) old_regend[r] >= (int) regstart[r])
+ if (old_regend[r] >= regstart[r])
regend[r] = old_regend[r];
}
}