Use < 0 instead of == -1

This commit is contained in:
FRIGN
2014-11-19 20:59:37 +01:00
committed by sin
parent 9b38355ae8
commit 1436518f9d
21 changed files with 41 additions and 41 deletions

View File

@@ -11,7 +11,7 @@ apathmax(char **p, long *size)
{
errno = 0;
if ((*size = pathconf("/", _PC_PATH_MAX)) == -1) {
if ((*size = pathconf("/", _PC_PATH_MAX)) < 0) {
if (errno == 0) {
*size = BUFSIZ;
} else {