commit a0874e30ffa484415727d0b84bd1bcbac22e4eca
parent 75d8d90a25290ffd0b74bd5a0ee4cc920c3c198b
Author: sin <sin@2f30.org>
Date: Wed, 2 Jul 2014 01:07:45 +0100
Be consistent when naming variables
Diffstat:
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/pkg.c b/pkg.c
@@ -276,7 +276,7 @@ pkg_collisions(struct pkg *pkg)
struct pkgentry *pe;
struct stat sb;
char resolvedpath[PATH_MAX];
- int ok = 0;
+ int r = 0;
TAILQ_FOREACH(pe, &pkg->pe_head, entry) {
if (access(pe->path, F_OK) == 0) {
@@ -289,12 +289,12 @@ pkg_collisions(struct pkg *pkg)
weprintf("%s exists\n", resolvedpath);
else
weprintf("%s exists\n", pe->path);
- ok = -1;
+ r = -1;
}
}
}
- return ok;
+ return r;
}
struct pkg *