Fix compiler warning in check_update.c

Fixes #263
The conditional checking for network connection always evaluated as true
since the check_network() function was not being called. Add the
parentheses to actually check for network.

Signed-off-by: Matthew Johnson <matthew.johnson@intel.com>
This commit is contained in:
Matthew Johnson
2017-09-28 11:27:01 -07:00
parent 0efd3f1e3d
commit 1a2226340e
+1 -1
View File
@@ -139,7 +139,7 @@ static int check_update()
}
swupd_curl_init();
if (!check_network) {
if (!check_network()) {
fprintf(stderr, "Error: Network issue, unable to proceed with update\n");
return ENOSWUPDSERVER;
}