mirror of
git://git.9front.org/plan9front/plan9front
synced 2025-01-12 11:10:06 +00:00
libc: cleanup hangup() function (avoid duplicated literal string)
This commit is contained in:
parent
f384231c60
commit
09d69e04b9
1 changed files with 2 additions and 1 deletions
|
@ -8,5 +8,6 @@
|
|||
int
|
||||
hangup(int ctl)
|
||||
{
|
||||
return write(ctl, "hangup", sizeof("hangup")-1) != sizeof("hangup")-1;
|
||||
static char msg[] = "hangup";
|
||||
return write(ctl, msg, sizeof(msg)-1) != sizeof(msg)-1;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue