Bump liberty

This commit is contained in:
2017-07-05 22:25:43 +02:00
parent 22e259a680
commit dce2bb72a2
8 changed files with 80 additions and 118 deletions

View File

@@ -121,8 +121,7 @@ read_value (int dir, const char *filename, struct error **e)
return -1;
}
struct str s;
str_init (&s);
struct str s = str_make ();
long value;
if (!read_line (fp, &s)
@@ -163,8 +162,7 @@ set_backlight (int dir, long diff, struct error **e)
"%s: %s: %s", "brightness", "openat", strerror (errno));
}
struct str s;
str_init (&s);
struct str s = str_make ();
str_append_printf (&s, "%ld", req);
bool result = write (fd, s.str, s.len) == (ssize_t) s.len;
str_free (&s);