Browse Source

file-updater: Fix warning parameter

The parameter was being passed as a pointer instead of being
dereferenced
jp9000 9 years ago
parent
commit
45015db9d8
1 changed files with 1 additions and 1 deletions
  1. 1 1
      deps/file-updater/file-updater/file-updater.c

+ 1 - 1
deps/file-updater/file-updater/file-updater.c

@@ -142,7 +142,7 @@ static bool do_http_request(struct update_info *info, const char *url,
 
 	if (*response_code >= 400) {
 		warn("Remote update of URL \"%s\" failed: HTTP/%ld", url,
-			response_code);
+			*response_code);
 		return false;
 	}