diff options
author | Olaf Hering <olaf@aepfle.de> | 2013-08-01 08:43:12 -0400 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2013-08-01 23:44:52 -0400 |
commit | 00663d73e39a4aec0c310bb5fc1c2c8dfccf1319 (patch) | |
tree | 6d38b34e43a61d6485c687427274f22672bfc1f5 /tools | |
parent | b4919a5f95c09992f66d4b7cbe392c33731a5cec (diff) |
Tools: hv: check return value of daemon to fix compiler warning.
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 <olaf@aepfle.de>
Signed-off-by: K. Y. Srinivasan <kys@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'tools')
-rw-r--r-- | tools/hv/hv_kvp_daemon.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/tools/hv/hv_kvp_daemon.c b/tools/hv/hv_kvp_daemon.c index 657c1d27e02e..418ac5548f98 100644 --- a/tools/hv/hv_kvp_daemon.c +++ b/tools/hv/hv_kvp_daemon.c | |||
@@ -1439,7 +1439,8 @@ int main(void) | |||
1439 | char *kvp_recv_buffer; | 1439 | char *kvp_recv_buffer; |
1440 | size_t kvp_recv_buffer_len; | 1440 | size_t kvp_recv_buffer_len; |
1441 | 1441 | ||
1442 | daemon(1, 0); | 1442 | if (daemon(1, 0)) |
1443 | return 1; | ||
1443 | openlog("KVP", 0, LOG_USER); | 1444 | openlog("KVP", 0, LOG_USER); |
1444 | syslog(LOG_INFO, "KVP starting; pid is:%d", getpid()); | 1445 | syslog(LOG_INFO, "KVP starting; pid is:%d", getpid()); |
1445 | 1446 | ||