Plan 9 from Bell Labs’s /usr/web/sources/contrib/uriel/changes/2005/1207/3

Copyright © 2021 Plan 9 Foundation.
Distributed under the MIT License.
Download the Plan 9 distribution.


Fix type.
 [jmk] --rw-rw-r-- M 905070 glenda sys 472 Dec  7 19:57 sys/src/ape/lib/ap/plan9/brk.c
	/n/sourcesdump/2005/1207/plan9/sys/src/ape/lib/ap/plan9/brk.c:22,37 - 
	/n/sourcesdump/2005/1208/plan9/sys/src/ape/lib/ap/plan9/brk.c:22,36
	  	return 0;
	  }
	  
	- char *
	- sbrk(int n)
	+ void *
	+ sbrk(unsigned long n)
	  {
	- 
	  	n += 3;
	  	n &= ~3;
	  	if(_BRK_((void *)(bloc+n)) < 0){
	  		errno = ENOMEM;
	- 		return (char *)-1;
	+ 		return (void *)-1;
	  	}
	  	bloc += n;
	- 	return (char *)(bloc-n);
	+ 	return (void *)(bloc-n);
	  }


Bell Labs OSI certified Powered by Plan 9

(Return to Plan 9 Home Page)

Copyright © 2021 Plan 9 Foundation. All Rights Reserved.
Comments to [email protected].