*: move get_sock_lsa and xwrite_str to libbb, use where appropriate
[oweals/busybox.git] / procps / sysctl.c
index d59e2690ace2360a484730bb1d12d50410c9e909..862cd17564a82822062e48c59cd09a57dbd981a9 100644 (file)
@@ -21,11 +21,6 @@ static int sysctl_display_all(const char *path);
 static int sysctl_handle_preload_file(const char *filename);
 static void sysctl_dots_to_slashes(char *name);
 
-static void dwrite_str(int fd, const char *buf)
-{
-       write(fd, buf, strlen(buf));
-}
-
 enum {
        FLAG_SHOW_KEYS       = 1 << 0,
        FLAG_SHOW_KEY_ERRORS = 1 << 1,
@@ -147,7 +142,7 @@ static int sysctl_act_on_setting(char *setting)
        }
 
        if (option_mask32 & FLAG_WRITE) {
-               dwrite_str(fd, value);
+               xwrite_str(fd, value);
                close(fd);
                if (option_mask32 & FLAG_SHOW_KEYS)
                        printf("%s = ", outname);