[BACK]Return to patch-af CVS log [TXT][DIR] Up to [cvs.NetBSD.org] / pkgsrc / mbone / nte / patches

File: [cvs.NetBSD.org] / pkgsrc / mbone / nte / patches / Attic / patch-af (download)

Revision 1.2, Fri Aug 10 14:07:22 2007 UTC (13 years, 6 months ago) by joerg
Branch: MAIN
CVS Tags: pkgsrc-2013Q4-base, pkgsrc-2013Q4, pkgsrc-2013Q3-base, pkgsrc-2013Q3, pkgsrc-2013Q2-base, pkgsrc-2013Q2, pkgsrc-2013Q1-base, pkgsrc-2013Q1, pkgsrc-2012Q4-base, pkgsrc-2012Q4, pkgsrc-2012Q3-base, pkgsrc-2012Q3, pkgsrc-2012Q2-base, pkgsrc-2012Q2, pkgsrc-2012Q1-base, pkgsrc-2012Q1, pkgsrc-2011Q4-base, pkgsrc-2011Q4, pkgsrc-2011Q3-base, pkgsrc-2011Q3, pkgsrc-2011Q2-base, pkgsrc-2011Q2, pkgsrc-2011Q1-base, pkgsrc-2011Q1, pkgsrc-2010Q4-base, pkgsrc-2010Q4, pkgsrc-2010Q3-base, pkgsrc-2010Q3, pkgsrc-2010Q2-base, pkgsrc-2010Q2, pkgsrc-2010Q1-base, pkgsrc-2010Q1, pkgsrc-2009Q4-base, pkgsrc-2009Q4, pkgsrc-2009Q3-base, pkgsrc-2009Q3, pkgsrc-2009Q2-base, pkgsrc-2009Q2, pkgsrc-2009Q1-base, pkgsrc-2009Q1, pkgsrc-2008Q4-base, pkgsrc-2008Q4, pkgsrc-2008Q3-base, pkgsrc-2008Q3, pkgsrc-2008Q2-base, pkgsrc-2008Q2, pkgsrc-2008Q1-base, pkgsrc-2008Q1, pkgsrc-2007Q4-base, pkgsrc-2007Q4, pkgsrc-2007Q3-base, pkgsrc-2007Q3, cwrapper, cube-native-xorg-base, cube-native-xorg
Changes since 1.1: +13 -4 lines

Fix malloc.h usage.

$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)