diff options
author | Denis Vlasenko <vda.linux@googlemail.com> | 2008-02-28 13:14:42 +0000 |
---|---|---|
committer | Denis Vlasenko <vda.linux@googlemail.com> | 2008-02-28 13:14:42 +0000 |
commit | cd174d1f31632884b717eba69048d338605e7e70 (patch) | |
tree | 61eef5bd52a5160752867d0b459001ca2b53befd /miscutils | |
parent | 32fd76c1d5a2e430ecdbb84706dba410992c34d0 (diff) | |
download | busybox-w32-cd174d1f31632884b717eba69048d338605e7e70.tar.gz busybox-w32-cd174d1f31632884b717eba69048d338605e7e70.tar.bz2 busybox-w32-cd174d1f31632884b717eba69048d338605e7e70.zip |
microcom: shrink
Diffstat (limited to 'miscutils')
-rw-r--r-- | miscutils/microcom.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/miscutils/microcom.c b/miscutils/microcom.c index 3c573eaa9..5219335a6 100644 --- a/miscutils/microcom.c +++ b/miscutils/microcom.c | |||
@@ -81,10 +81,7 @@ int microcom_main(int argc, char **argv) | |||
81 | // %4d to make concurrent mgetty (if any) happy. | 81 | // %4d to make concurrent mgetty (if any) happy. |
82 | // Mgetty treats 4-bytes lock files as binary, | 82 | // Mgetty treats 4-bytes lock files as binary, |
83 | // not text, PID. Making 5+ char file. Brrr... | 83 | // not text, PID. Making 5+ char file. Brrr... |
84 | char *s = xasprintf("%4d\n", getpid()); | 84 | fdprintf(sfd, "%4d\n", getpid()); |
85 | write(sfd, s, strlen(s)); | ||
86 | if (ENABLE_FEATURE_CLEAN_UP) | ||
87 | free(s); | ||
88 | close(sfd); | 85 | close(sfd); |
89 | } | 86 | } |
90 | 87 | ||