projects
/
oweals
/
busybox.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
32fd76c
)
microcom: shrink
author
Denis Vlasenko
<vda.linux@googlemail.com>
Thu, 28 Feb 2008 13:14:42 +0000
(13:14 -0000)
committer
Denis Vlasenko
<vda.linux@googlemail.com>
Thu, 28 Feb 2008 13:14:42 +0000
(13:14 -0000)
miscutils/microcom.c
patch
|
blob
|
history
diff --git
a/miscutils/microcom.c
b/miscutils/microcom.c
index 3c573eaa9f50e3e39af0ea886e87a8b662090d7e..5219335a6eb0e92641543a6e0b161af4d6ebc064 100644
(file)
--- a/
miscutils/microcom.c
+++ b/
miscutils/microcom.c
@@
-81,10
+81,7
@@
int microcom_main(int argc, char **argv)
// %4d to make concurrent mgetty (if any) happy.
// Mgetty treats 4-bytes lock files as binary,
// not text, PID. Making 5+ char file. Brrr...
- char *s = xasprintf("%4d\n", getpid());
- write(sfd, s, strlen(s));
- if (ENABLE_FEATURE_CLEAN_UP)
- free(s);
+ fdprintf(sfd, "%4d\n", getpid());
close(sfd);
}