Tools: hv: check return value of system in hv_kvp_daemon
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>
This commit is contained in:
parent
57969af029
commit
d3b688c662
@ -1353,7 +1353,11 @@ setval_done:
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
snprintf(cmd, sizeof(cmd), "%s %s", "hv_set_ifconfig", if_file);
|
snprintf(cmd, sizeof(cmd), "%s %s", "hv_set_ifconfig", if_file);
|
||||||
system(cmd);
|
if (system(cmd)) {
|
||||||
|
syslog(LOG_ERR, "Failed to execute cmd '%s'; error: %d %s",
|
||||||
|
cmd, errno, strerror(errno));
|
||||||
|
return HV_E_FAIL;
|
||||||
|
}
|
||||||
return 0;
|
return 0;
|
||||||
|
|
||||||
setval_error:
|
setval_error:
|
||||||
|
Loading…
Reference in New Issue
Block a user