mirror of
https://github.com/systemd/systemd.git
synced 2025-03-21 02:50:18 +03:00
make gcc shut up
This commit is contained in:
parent
462b33e96a
commit
bab4504448
@ -392,8 +392,8 @@ static int chown_terminal(int fd, uid_t uid) {
|
||||
assert(fd >= 0);
|
||||
|
||||
/* This might fail. What matters are the results. */
|
||||
fchown(fd, uid, -1);
|
||||
fchmod(fd, TTY_MODE);
|
||||
(void) fchown(fd, uid, -1);
|
||||
(void) fchmod(fd, TTY_MODE);
|
||||
|
||||
if (fstat(fd, &st) < 0)
|
||||
return -errno;
|
||||
|
@ -110,7 +110,7 @@ static int mount_cgroup_controllers(void) {
|
||||
return -ENOENT;
|
||||
|
||||
/* Ignore the header line */
|
||||
fgets(buf, sizeof(buf), f);
|
||||
(void) fgets(buf, sizeof(buf), f);
|
||||
|
||||
for (;;) {
|
||||
MountPoint p;
|
||||
|
3
swap.c
3
swap.c
@ -318,7 +318,8 @@ static int swap_load_proc_swaps(Manager *m) {
|
||||
Meta *meta;
|
||||
|
||||
rewind(m->proc_swaps);
|
||||
fscanf(m->proc_self_mountinfo, "%*s %*s %*s %*s %*s\n");
|
||||
|
||||
(void) fscanf(m->proc_self_mountinfo, "%*s %*s %*s %*s %*s\n");
|
||||
|
||||
for (;;) {
|
||||
char *dev = NULL, *d;
|
||||
|
Loading…
x
Reference in New Issue
Block a user