diff options
Diffstat (limited to 'procps')
-rw-r--r-- | procps/sysctl.c | 7 |
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); | |||
21 | static int sysctl_handle_preload_file(const char *filename); | 21 | static int sysctl_handle_preload_file(const char *filename); |
22 | static void sysctl_dots_to_slashes(char *name); | 22 | static void sysctl_dots_to_slashes(char *name); |
23 | 23 | ||
24 | static void dwrite_str(int fd, const char *buf) | ||
25 | { | ||
26 | write(fd, buf, strlen(buf)); | ||
27 | } | ||
28 | |||
29 | enum { | 24 | enum { |
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); |