cc -Wextra
This commit is contained in:
@@ -8,9 +8,9 @@ char *
|
||||
agetcwd(void)
|
||||
{
|
||||
char *buf;
|
||||
size_t size;
|
||||
long size;
|
||||
|
||||
if((size = pathconf(".", _PC_PATH_MAX)) < 0)
|
||||
if((size = pathconf(".", _PC_PATH_MAX)) == -1)
|
||||
size = BUFSIZ;
|
||||
if(!(buf = malloc(size)))
|
||||
eprintf("malloc:");
|
||||
|
@@ -25,7 +25,7 @@ enmasse(int argc, char **argv, int (*fn)(const char *, const char *))
|
||||
else
|
||||
dir = argv[--argc];
|
||||
|
||||
if((size = pathconf(dir, _PC_PATH_MAX)) < 0)
|
||||
if((size = pathconf(dir, _PC_PATH_MAX)) == -1)
|
||||
size = BUFSIZ;
|
||||
if(!(buf = malloc(size)))
|
||||
eprintf("malloc:");
|
||||
|
Reference in New Issue
Block a user