diff options
author | ftrvxmtrx <devnull@localhost> | 2014-05-03 13:07:52 +0200 |
---|---|---|
committer | ftrvxmtrx <devnull@localhost> | 2014-05-03 13:07:52 +0200 |
commit | d2c3185bfa486bb3f60d23771c701cfeaa1316db (patch) | |
tree | ef888f3c39c10fd1b28683be3b3db373ea85ad65 /sys/src/cmd/rio/wind.c | |
parent | 6f58f7fed4e6e00e6632ff9fe5bc56e75879424f (diff) |
fix threadsetname usage in few places
Diffstat (limited to 'sys/src/cmd/rio/wind.c')
-rw-r--r-- | sys/src/cmd/rio/wind.c | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/sys/src/cmd/rio/wind.c b/sys/src/cmd/rio/wind.c index fb117b614..9b1fff188 100644 --- a/sys/src/cmd/rio/wind.c +++ b/sys/src/cmd/rio/wind.c @@ -180,12 +180,11 @@ winctl(void *arg) Stringpair pair; Wctlmesg wcm; Completion *cr; - char buf[4*12+1], *kbdq[8], *kbds; + char *kbdq[8], *kbds; int kbdqr, kbdqw; w = arg; - snprint(buf, sizeof buf, "winctl-id%d", w->id); - threadsetname(buf); + threadsetname("winctl-id%d", w->id); mrm.cm = chancreate(sizeof(Mouse), 0); krm.ck = chancreate(sizeof(char*), 0); @@ -540,11 +539,9 @@ completeproc(void *arg) { Completejob *job; Completion *c; - char buf[128]; job = arg; - snprint(buf, sizeof(buf), "namecomplete %s", job->dir); - threadsetname(buf); + threadsetname("namecomplete %s", job->dir); c = complete(job->dir, job->str); if(c != nil && sendp(job->win->complete, c) <= 0) |