summaryrefslogtreecommitdiff
path: root/sys/src/libcontrol
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/libcontrol
parent6f58f7fed4e6e00e6632ff9fe5bc56e75879424f (diff)
fix threadsetname usage in few places
Diffstat (limited to 'sys/src/libcontrol')
-rw-r--r--sys/src/libcontrol/control.c9
1 files changed, 3 insertions, 6 deletions
diff --git a/sys/src/libcontrol/control.c b/sys/src/libcontrol/control.c
index f30d6fe57..62a441524 100644
--- a/sys/src/libcontrol/control.c
+++ b/sys/src/libcontrol/control.c
@@ -160,12 +160,11 @@ controlsetthread(void *v)
Control *f;
int prevbut, n, i;
Alt alts[NALT+1];
- char tmp[64], *str;
+ char *str;
Rune buf[2][20], *rp;
cs = v;
- snprint(tmp, sizeof tmp, "controlsetthread 0x%p", cs);
- threadsetname(tmp);
+ threadsetname("controlsetthread 0x%p", cs);
alts[AKey].c = cs->kbdc;
alts[AKey].v = &rp;
@@ -619,12 +618,10 @@ static void
resizethread(void *v)
{
Controlset *cs;
- char buf[64];
Alt alts[3];
cs = v;
- snprint(buf, sizeof buf, "resizethread0x%p", cs);
- threadsetname(buf);
+ threadsetname("resizethread 0x%p", cs);
alts[0].c = cs->resizec;
alts[0].v = nil;