04fb15deb7
When compiling restorecond with -Wunused, gcc 4.8.4 (from Ubuntu 14.04) reports the following warnings: restorecond.c: In function ‘main’: restorecond.c:208:9: error: ignoring return value of ‘daemon’, declared with attribute warn_unused_result [-Werror=unused-result] daemon(0, 0); ^ restorecond.c: In function ‘write_pid_file’: restorecond.c:106:2: error: ignoring return value of ‘write’, declared with attribute warn_unused_result [-Werror=unused-result] (void)write(pidfd, val, (unsigned int)len); ^ If any of these calls returns an error, it is currently silently discarded. Add a message in order to warn about such an error. Signed-off-by: Nicolas Iooss <nicolas.iooss@m4x.org> |
||
---|---|---|
.. | ||
.gitignore | ||
COPYING | ||
Makefile | ||
org.selinux.Restorecond.service | ||
restore.c | ||
restore.h | ||
restorecond.8 | ||
restorecond.c | ||
restorecond.conf | ||
restorecond.desktop | ||
restorecond.h | ||
restorecond.init | ||
restorecond.service | ||
restorecond_user.conf | ||
stringslist.c | ||
stringslist.h | ||
user.c | ||
utmpwatcher.c | ||
utmpwatcher.h | ||
VERSION | ||
watch.c |