vx32

Local 9vx git repository for patches.
git clone git://r-36.net/vx32
Log | Files | Refs

commit c144c04d93a9215b1749322cbebef45f043474a6
parent 11ae6de94d664cb94d39a00e98031e1c5e134c21
Author: Russ Cox <rsc@swtch.com>
Date:   Sat, 28 Jun 2008 12:35:34 -0400

9vx: clean up devsd compile warnings

Diffstat:
src/9vx/a/devsd.c | 8++------
1 file changed, 2 insertions(+), 6 deletions(-)

diff --git a/src/9vx/a/devsd.c b/src/9vx/a/devsd.c @@ -176,10 +176,6 @@ sdincvers(SDunit *unit) static int sdinitpart(SDunit* unit) { - int nf; - uvlong start, end; - char *f[4], *p, *q, buf[10]; - if(unit->sectors > 0){ unit->sectors = unit->secsize = 0; sdincvers(unit); @@ -253,7 +249,7 @@ sdgetdev(int idno) return nil; qlock(&devslock); - if(sdev = devs[i]) + if((sdev = devs[i])) incref(&sdev->r); qunlock(&devslock); return sdev; @@ -1467,7 +1463,7 @@ unconfigure(char* spec) sdev->ifc->disable(sdev); for(i = 0; i != sdev->nunit; i++){ - if(unit = sdev->unit[i]){ + if((unit = sdev->unit[i])){ free(unit->perm.name); free(unit->perm.user); free(unit);