head 1.2; access; symbols pkgsrc-2013Q2:1.2.0.48 pkgsrc-2013Q2-base:1.2 pkgsrc-2012Q4:1.2.0.46 pkgsrc-2012Q4-base:1.2 pkgsrc-2011Q4:1.2.0.44 pkgsrc-2011Q4-base:1.2 pkgsrc-2011Q2:1.2.0.42 pkgsrc-2011Q2-base:1.2 pkgsrc-2009Q4:1.2.0.40 pkgsrc-2009Q4-base:1.2 pkgsrc-2008Q4:1.2.0.38 pkgsrc-2008Q4-base:1.2 pkgsrc-2008Q3:1.2.0.36 pkgsrc-2008Q3-base:1.2 cube-native-xorg:1.2.0.34 cube-native-xorg-base:1.2 pkgsrc-2008Q2:1.2.0.32 pkgsrc-2008Q2-base:1.2 pkgsrc-2008Q1:1.2.0.30 pkgsrc-2008Q1-base:1.2 pkgsrc-2007Q4:1.2.0.28 pkgsrc-2007Q4-base:1.2 pkgsrc-2007Q3:1.2.0.26 pkgsrc-2007Q3-base:1.2 pkgsrc-2007Q2:1.2.0.24 pkgsrc-2007Q2-base:1.2 pkgsrc-2007Q1:1.2.0.22 pkgsrc-2007Q1-base:1.2 pkgsrc-2006Q4:1.2.0.20 pkgsrc-2006Q4-base:1.2 pkgsrc-2006Q3:1.2.0.18 pkgsrc-2006Q3-base:1.2 pkgsrc-2006Q2:1.2.0.16 pkgsrc-2006Q2-base:1.2 pkgsrc-2006Q1:1.2.0.14 pkgsrc-2006Q1-base:1.2 pkgsrc-2005Q4:1.2.0.12 pkgsrc-2005Q4-base:1.2 pkgsrc-2005Q3:1.2.0.10 pkgsrc-2005Q3-base:1.2 pkgsrc-2005Q2:1.2.0.8 pkgsrc-2005Q2-base:1.2 pkgsrc-2005Q1:1.2.0.6 pkgsrc-2005Q1-base:1.2 pkgsrc-2004Q4:1.2.0.4 pkgsrc-2004Q4-base:1.2 pkgsrc-2004Q3:1.2.0.2 pkgsrc-2004Q3-base:1.2 pkgsrc-2004Q2:1.1.0.10 pkgsrc-2004Q2-base:1.1 pkgsrc-2004Q1:1.1.0.8 pkgsrc-2004Q1-base:1.1 pkgsrc-2003Q4:1.1.0.6 pkgsrc-2003Q4-base:1.1 netbsd-1-6-1:1.1.0.2 netbsd-1-6-1-base:1.1 netbsd-1-6:1.1.0.4 netbsd-1-6-RELEASE-base:1.1; locks; strict; comment @# @; 1.2 date 2004.07.04.23.41.00; author wiz; state dead; branches; next 1.1; 1.1 date 2002.08.10.23.22.02; author rh; state Exp; branches; next ; desc @@ 1.2 log @Unneeded after update to 4.7. @ text @$NetBSD: patch-ai,v 1.1 2002/08/10 23:22:02 rh Exp $ --- lib/xmalloc.c.orig Tue Jun 20 06:06:31 1995 +++ lib/xmalloc.c @@@@ -27,10 +27,11 @@@@ #if !defined (ALREADY_HAVE_XMALLOC) #include +#include #include extern void *malloc (), *realloc (); -static void memory_error_and_abort (); +static void memory_error_and_abort (const char *); /* **************************************************************** */ /* */ @@@@ -42,8 +43,7 @@@@ to hold BYTES number of bytes. If the memory cannot be allocated, print an error message and abort. */ void * -xmalloc (bytes) - int bytes; +xmalloc (unsigned bytes) { void *temp = malloc (bytes); @@@@ -53,9 +53,7 @@@@ } void * -xrealloc (pointer, bytes) - void *pointer; - int bytes; +xrealloc (void *pointer, unsigned bytes) { void *temp; @@@@ -71,8 +69,7 @@@@ } static void -memory_error_and_abort (fname) - char *fname; +memory_error_and_abort (const char *fname) { fprintf (stderr, "%s: Out of virtual memory!\n", fname); abort (); @ 1.1 log @Make sure proper prototypes are used for xmalloc() and the like so the package actually works on PPC and other architectures where this matters. Bump PKGREVISION. This closes PR pkg/17377 by Andrew Cagney @ text @d1 1 a1 1 $NetBSD$ @