summaryrefslogtreecommitdiff
path: root/mbone/nte/patches/patch-af
blob: daedad93c0a7ab3607522479f2c4c2530a829342 (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
30
31
$NetBSD: patch-af,v 1.2 2007/08/10 14:07:22 joerg Exp $

--- src/hsearch.c.orig	1996-09-04 10:54:03.000000000 +0000
+++ src/hsearch.c
@@ -19,7 +19,7 @@ not, write to the Free Software Foundati
 Cambridge, MA 02139, USA.  */
 
 #include "ansidecl.h"
-#include <malloc.h>
+#include <stdlib.h>
 #include <string.h>
 
 #include "search.h"
@@ -55,7 +55,7 @@ static unsigned   filled;
  */
 
 static int
-DEFUN(isprime, (number), unsigned number)
+DEFUN(isprime, (number), size_t number)
 {
     /* no even number will be passed */
     unsigned div = 3;
@@ -76,7 +76,7 @@ DEFUN(isprime, (number), unsigned number
  */
 
 int
-DEFUN(hcreate, (nel), unsigned nel)
+DEFUN(hcreate, (nel), size_t nel)
 {
     /* There is still a table active. Return with error. */
     if (htable != NULL)