aboutsummaryrefslogtreecommitdiff
path: root/src/libthread/id.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/libthread/id.c')
-rw-r--r--src/libthread/id.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/libthread/id.c b/src/libthread/id.c
index d32a92f2..a6d5222f 100644
--- a/src/libthread/id.c
+++ b/src/libthread/id.c
@@ -60,10 +60,10 @@ threadsetname(char *fmt, ...)
p = _threadgetproc();
t = p->thread;
- if (t->cmdname)
- free(t->cmdname);
+ if(t->name)
+ free(t->name);
va_start(arg, fmt);
- t->cmdname = vsmprint(fmt, arg);
+ t->name = vsmprint(fmt, arg);
va_end(arg);
/* Plan 9 only
@@ -85,7 +85,7 @@ threadsetname(char *fmt, ...)
char*
threadgetname(void)
{
- return _threadgetproc()->thread->cmdname;
+ return _threadgetproc()->thread->name;
}
void**