Skip to content

Commit

Permalink
Tools: hv: check return value of daemon to fix compiler warning.
Browse files Browse the repository at this point in the history
hv_kvp_daemon.c: In function 'main':
hv_kvp_daemon.c:1441:8: warning: ignoring return value of 'daemon', declared with attribute warn_unused_result [-Wunused-result]

Signed-off-by: Olaf Hering <[email protected]>
Signed-off-by: K. Y. Srinivasan <[email protected]>
Signed-off-by: Greg Kroah-Hartman <[email protected]>
olafhering authored and gregkh committed Aug 2, 2013
1 parent b4919a5 commit 00663d7
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tools/hv/hv_kvp_daemon.c
Original file line number Diff line number Diff line change
@@ -1439,7 +1439,8 @@ int main(void)
char *kvp_recv_buffer;
size_t kvp_recv_buffer_len;

daemon(1, 0);
if (daemon(1, 0))
return 1;
openlog("KVP", 0, LOG_USER);
syslog(LOG_INFO, "KVP starting; pid is:%d", getpid());

0 comments on commit 00663d7

Please sign in to comment.