aboutsummaryrefslogtreecommitdiff
path: root/procps
diff options
context:
space:
mode:
authorDenis Vlasenko <vda.linux@googlemail.com>2009-03-09 00:12:37 +0000
committerDenis Vlasenko <vda.linux@googlemail.com>2009-03-09 00:12:37 +0000
commit73c571a5fff95d0f50f4fc509c35fedca73122bc (patch)
tree8e3be82bbd3f7307b57f146fa2ef8ea422391137 /procps
parent5e4fda0affaa0a80a5ff33dd72c702b8f905be33 (diff)
downloadbusybox-w32-73c571a5fff95d0f50f4fc509c35fedca73122bc.tar.gz
busybox-w32-73c571a5fff95d0f50f4fc509c35fedca73122bc.tar.bz2
busybox-w32-73c571a5fff95d0f50f4fc509c35fedca73122bc.zip
*: move get_sock_lsa and xwrite_str to libbb, use where appropriate
function old new delta get_sock_lsa - 72 +72 buffer_fill_and_print 179 196 +17 parse_expr 824 832 +8 read_base64 343 348 +5 nameval 202 206 +4 fbset_main 1694 1698 +4 expand 1849 1853 +4 udhcp_send_kernel_packet 249 252 +3 udhcp_get_option 223 222 -1 chat_main 1246 1245 -1 pack_gzip 1661 1659 -2 doset 299 297 -2 bb__parsespent 119 117 -2 test_main 260 257 -3 qgravechar 109 106 -3 tcpudpsvd_main 1834 1830 -4 sysctl_display_all 589 580 -9 xopen_xwrite_close 44 33 -11 prs 30 18 -12 find_main 418 406 -12 full_write2_str 25 12 -13 adduser_main 667 654 -13 evaltreenr 817 802 -15 evaltree 817 802 -15 tftpd_main 526 493 -33 ftpd_main 2050 1990 -60 ------------------------------------------------------------------------------ (add/remove: 1/0 grow/shrink: 7/18 up/down: 117/-211) Total: -94 bytes
Diffstat (limited to 'procps')
-rw-r--r--procps/sysctl.c7
1 files changed, 1 insertions, 6 deletions
diff --git a/procps/sysctl.c b/procps/sysctl.c
index d59e2690a..862cd1756 100644
--- a/procps/sysctl.c
+++ b/procps/sysctl.c
@@ -21,11 +21,6 @@ static int sysctl_display_all(const char *path);
21static int sysctl_handle_preload_file(const char *filename); 21static int sysctl_handle_preload_file(const char *filename);
22static void sysctl_dots_to_slashes(char *name); 22static void sysctl_dots_to_slashes(char *name);
23 23
24static void dwrite_str(int fd, const char *buf)
25{
26 write(fd, buf, strlen(buf));
27}
28
29enum { 24enum {
30 FLAG_SHOW_KEYS = 1 << 0, 25 FLAG_SHOW_KEYS = 1 << 0,
31 FLAG_SHOW_KEY_ERRORS = 1 << 1, 26 FLAG_SHOW_KEY_ERRORS = 1 << 1,
@@ -147,7 +142,7 @@ static int sysctl_act_on_setting(char *setting)
147 } 142 }
148 143
149 if (option_mask32 & FLAG_WRITE) { 144 if (option_mask32 & FLAG_WRITE) {
150 dwrite_str(fd, value); 145 xwrite_str(fd, value);
151 close(fd); 146 close(fd);
152 if (option_mask32 & FLAG_SHOW_KEYS) 147 if (option_mask32 & FLAG_SHOW_KEYS)
153 printf("%s = ", outname); 148 printf("%s = ", outname);