Merge pull request #2357 from keszybz/warnings-2
Remove gcc warnings v2
This commit is contained in:
@@ -71,7 +71,7 @@ static int lookup_key(const char *keyname, key_serial_t *ret) {
|
||||
|
||||
serial = request_key("user", keyname, NULL, 0);
|
||||
if (serial == -1)
|
||||
return -errno;
|
||||
return negative_errno();
|
||||
|
||||
*ret = serial;
|
||||
return 0;
|
||||
|
||||
+1
-1
@@ -156,7 +156,7 @@ static int iterate_dir(
|
||||
|
||||
errno = 0;
|
||||
de = readdir(d);
|
||||
if (!de && errno != 0)
|
||||
if (!de && errno > 0)
|
||||
return log_error_errno(errno, "Failed to read directory %s: %m", path);
|
||||
|
||||
if (!de)
|
||||
|
||||
Reference in New Issue
Block a user