freebsd-ports/shells/v7sh/files/patch-setbrk.c
Pav Lucistnik 6b787b91fc Add v7sh, the original Steve R. Bourne shell from the 7th edition Unix including
System III, 4.3BSD-Reno, Ultrix 3.1 and `home made'' fixes and enhancements

PR:		ports/68127
Submitted by:	Cyrille Lefevre <cyrille.lefevre@laposte.net>
2004-06-22 08:24:19 +00:00

16 lines
386 B
C

diff -u -x CVS -x work -x core -x *.core -x #* -x *~ -x *.orig -x *.rej -I $Id.*$ -I $.+BSD.*$ setbrk.c.orig setbrk.c
--- setbrk.c.orig Fri Jun 4 02:51:02 2004
+++ setbrk.c Sat Jun 19 18:42:24 2004
@@ -9,9 +9,10 @@
#include "defs.h"
-setbrk(incr)
+BYTPTR setbrk(incr)
+ INT incr;
{
- REG BYTPTR a=sbrk(incr);
+ REG BYTPTR a=(BYTPTR) sbrk(incr);
brkend=a+incr;
return(a);
}