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

@@ -24,7 +24,7 @@ usage(void)
static void
chgrp(const char *path)
{
if (chown(path, st.st_uid, gid) == -1) {
if (chown(path, st.st_uid, gid) < 0) {
weprintf("chown %s:", path);
failures++;
}
@@ -57,7 +57,7 @@ main(int argc, char *argv[])
gid = gr->gr_gid;
while (*++argv) {
if (stat(*argv, &st) == -1) {
if (stat(*argv, &st) < 0) {
weprintf("stat %s:", *argv);
failures++;
continue;