Use < 0 instead of == -1
This commit is contained in:
@@ -12,6 +12,6 @@ rm(const char *path)
|
||||
{
|
||||
if (rm_rflag)
|
||||
recurse(path, rm);
|
||||
if (remove(path) == -1 && !rm_fflag)
|
||||
if (remove(path) < 0 && !rm_fflag)
|
||||
eprintf("remove %s:", path);
|
||||
}
|
||||
|
Reference in New Issue
Block a user