--- libdaemon/dexec.h +++ libdaemon/dexec.h @@ -46,7 +46,11 @@ * @param ... The arguments to be passed to the program, followed by a (char *) NULL * @return Nonzero on failure, zero on success */ -int daemon_exec(const char *dir, int *ret, const char *prog, ...); +int daemon_exec(const char *dir, int *ret, const char *prog, ...) +#if defined(__GNUC__) && (__GNUC__ >= 4) +__attribute__((__sentinel__(0))) +#endif +; #ifdef __cplusplus }