Plan 9 from Bell Labs’s /usr/web/sources/contrib/uriel/changes/2006/0211/8

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


Avoid unnecessary memory usage.
 [rsc] --rw-rw-r-- M 771144 rsc sys 10919 Feb 11 09:15 sys/src/cmd/aux/disksim.c
	/n/sourcesdump/2006/0211/plan9/sys/src/cmd/aux/disksim.c:246,252 - 
	/n/sourcesdump/2006/0212/plan9/sys/src/cmd/aux/disksim.c:246,252
	  	uint i0, i1, i2;
	  	vlong oaddr;
	  
	- 	if(fd)
	+ 	if(fd >= 0)
	  		alloc = 1;
	  
	  	addr >>= LOGBLKSZ;


Bell Labs OSI certified Powered by Plan 9

(Return to Plan 9 Home Page)

Copyright © 2021 Plan 9 Foundation. All Rights Reserved.
Comments to webmaster@9p.io.