summaryrefslogtreecommitdiff
path: root/runit
diff options
context:
space:
mode:
authorDenis Vlasenko <vda.linux@googlemail.com>2007-09-27 10:20:47 +0000
committerDenis Vlasenko <vda.linux@googlemail.com>2007-09-27 10:20:47 +0000
commit4daad9004d8f07991516970a1cbd77756fae7041 (patch)
treef1a17e4b168ef8fdf8af92ac5ce8deba89d38db2 /runit
parent1acdc89e992eb3f0548ff48ba586b31c9a0ae232 (diff)
downloadbusybox-w32-4daad9004d8f07991516970a1cbd77756fae7041.tar.gz
busybox-w32-4daad9004d8f07991516970a1cbd77756fae7041.tar.bz2
busybox-w32-4daad9004d8f07991516970a1cbd77756fae7041.zip
introduce bb_putchar(). saves ~1800 on uclibc (less on glibc).
Diffstat (limited to 'runit')
-rw-r--r--runit/sv.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/runit/sv.c b/runit/sv.c
index 406dc6fc8..7283bbf7d 100644
--- a/runit/sv.c
+++ b/runit/sv.c
@@ -179,7 +179,7 @@ static void out(const char *p, const char *m1)
179 if (errno) { 179 if (errno) {
180 printf(": %s", strerror(errno)); 180 printf(": %s", strerror(errno));
181 } 181 }
182 puts(""); /* will also flush the output */ 182 bb_putchar('\n'); /* will also flush the output */
183} 183}
184 184
185#define WARN "warning: " 185#define WARN "warning: "
@@ -300,7 +300,7 @@ static int status(const char *unused)
300 printf("; "); 300 printf("; ");
301 svstatus_print("log"); 301 svstatus_print("log");
302 } 302 }
303 puts(""); /* will also flush the output */ 303 bb_putchar('\n'); /* will also flush the output */
304 return r; 304 return r;
305} 305}
306 306
@@ -372,7 +372,7 @@ static int check(const char *a)
372 } 372 }
373 printf(OK); 373 printf(OK);
374 svstatus_print(*service); 374 svstatus_print(*service);
375 puts(""); /* will also flush the output */ 375 bb_putchar('\n'); /* will also flush the output */
376 return 1; 376 return 1;
377} 377}
378 378
@@ -571,7 +571,7 @@ int sv_main(int argc, char **argv)
571 svstatus_print(*service); 571 svstatus_print(*service);
572 ++rc; 572 ++rc;
573 } 573 }
574 puts(""); /* will also flush the output */ 574 bb_putchar('\n'); /* will also flush the output */
575 if (kll) 575 if (kll)
576 control("k"); 576 control("k");
577 nullify_service: 577 nullify_service: