Un-boolify sbase

It actually makes the binaries smaller, the code easier to read
(gems like "val == true", "val == false" are gone) and actually
predictable in the sense of that we actually know what we're
working with (one bitwise operator was quite adventurous and
should now be fixed).

This is also more consistent with the other suckless projects
around which don't use boolean types.
This commit is contained in:
FRIGN
2014-11-13 21:24:47 +01:00
committed by sin
parent 7d2683ddf2
commit ec8246bbc6
41 changed files with 215 additions and 257 deletions

4
mv.c
View File

@@ -44,8 +44,8 @@ mv(const char *s1, const char *s2)
if (rename(s1, s2) == 0)
return 0;
if (errno == EXDEV) {
cp_rflag = true;
rm_rflag = true;
cp_rflag = 1;
rm_rflag = 1;
cp(s1, s2);
rm(s1);
return 0;