summaryrefslogtreecommitdiff
path: root/sys/src/cmd/rio/xfid.c
diff options
context:
space:
mode:
authorftrvxmtrx <devnull@localhost>2014-05-03 13:07:52 +0200
committerftrvxmtrx <devnull@localhost>2014-05-03 13:07:52 +0200
commitd2c3185bfa486bb3f60d23771c701cfeaa1316db (patch)
treeef888f3c39c10fd1b28683be3b3db373ea85ad65 /sys/src/cmd/rio/xfid.c
parent6f58f7fed4e6e00e6632ff9fe5bc56e75879424f (diff)
fix threadsetname usage in few places
Diffstat (limited to 'sys/src/cmd/rio/xfid.c')
-rw-r--r--sys/src/cmd/rio/xfid.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/sys/src/cmd/rio/xfid.c b/sys/src/cmd/rio/xfid.c
index adae440cf..a66c94d58 100644
--- a/sys/src/cmd/rio/xfid.c
+++ b/sys/src/cmd/rio/xfid.c
@@ -99,11 +99,9 @@ xfidctl(void *arg)
{
Xfid *x;
void (*f)(Xfid*);
- char buf[64];
x = arg;
- snprint(buf, sizeof buf, "xfid.%p", x);
- threadsetname(buf);
+ threadsetname("xfid.%p", x);
for(;;){
f = recvp(x->c);
if(f){