svn commit: trunk/busybox/miscutils
vda at busybox.net
vda at busybox.net
Thu Feb 28 13:14:43 UTC 2008
Author: vda
Date: 2008-02-28 05:14:42 -0800 (Thu, 28 Feb 2008)
New Revision: 21136
Log:
microcom: shrink
Modified:
trunk/busybox/miscutils/microcom.c
Changeset:
Modified: trunk/busybox/miscutils/microcom.c
===================================================================
--- trunk/busybox/miscutils/microcom.c 2008-02-28 10:10:10 UTC (rev 21135)
+++ trunk/busybox/miscutils/microcom.c 2008-02-28 13:14:42 UTC (rev 21136)
@@ -81,10 +81,7 @@
// %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);
}
More information about the busybox-cvs
mailing list