aboutsummaryrefslogtreecommitdiff
path: root/src/libthread/iorw.c
diff options
context:
space:
mode:
authorRuss Cox <rsc@swtch.com>2012-10-20 13:36:52 -0400
committerRuss Cox <rsc@swtch.com>2012-10-20 13:36:52 -0400
commit220c15d2b746878a943f311e6f66b1480e46491d (patch)
treeb3235ff00e75b08680c0db754058ec908e2b2f22 /src/libthread/iorw.c
parent53527a6e7864f5d681d7140f1403d4d8d42311d5 (diff)
downloadplan9port-220c15d2b746878a943f311e6f66b1480e46491d.tar.gz
plan9port-220c15d2b746878a943f311e6f66b1480e46491d.tar.bz2
plan9port-220c15d2b746878a943f311e6f66b1480e46491d.zip
fix gcc 4.7 warnings (thanks Tuncer Ayaz)
R=rsc http://codereview.appspot.com/6744053
Diffstat (limited to 'src/libthread/iorw.c')
-rw-r--r--src/libthread/iorw.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/libthread/iorw.c b/src/libthread/iorw.c
index ce86d146..b69f9ec4 100644
--- a/src/libthread/iorw.c
+++ b/src/libthread/iorw.c
@@ -164,12 +164,11 @@ _ioread9pmsg(va_list *arg)
int fd;
void *a;
int n;
- int r;
fd = va_arg(*arg, int);
a = va_arg(*arg, void*);
n = va_arg(*arg, int);
- r = read9pmsg(fd, a, n);
+ read9pmsg(fd, a, n);
return n;
}
int