procd: fix compiler warning
authorJohn Crispin <john@phrozen.org>
Tue, 26 Jan 2021 10:19:10 +0000 (11:19 +0100)
committerJohn Crispin <john@phrozen.org>
Tue, 26 Jan 2021 10:19:10 +0000 (11:19 +0100)
commitd6dda317db4fcd7021ad356b6d424295778145ba
tree4bb5def23fb50c6fd2c4b3f53f454c5c239bf810
parent0aee1c30c046219b8cbd17492f1cb60c68d7e4f3
procd: fix compiler warning

[ 37%] Building C object CMakeFiles/procd.dir/state.c.o
/projects/procd/state.c: In function ‘state_enter’:
/projects/procd/state.c:147:4: error: ignoring return value of ‘chown’, declared with attribute warn_unused_result [-Werror=unused-result]
  147 |    chown(p->pw_dir, p->pw_uid, p->pw_gid);
      |    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
cc1: all warnings being treated as errors
make[2]: *** [CMakeFiles/procd.dir/build.make:89: CMakeFiles/procd.dir/state.c.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:241: CMakeFiles/procd.dir/all] Error 2
make: *** [Makefile:130: all] Error 2

Signed-off-by: John Crispin <john@phrozen.org>
state.c