summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJay Freeman (saurik) <saurik@saurik.com>2008-07-13 11:41:31 +0000
committerJay Freeman (saurik) <saurik@saurik.com>2010-09-30 07:08:07 +0000
commitaa629131c0a605bd5e2c716a6cadca5a3badf500 (patch)
tree7bfce5b188bdb9f33d01c265c83ac21b0ef48da6
parentaa5e5990e17da617b0e95c962e86924bc9b99b50 (diff)
OMG I AM STUPID
-rw-r--r--Cydia.mm12
1 files changed, 4 insertions, 8 deletions
diff --git a/Cydia.mm b/Cydia.mm
index 975c184..27113ff 100644
--- a/Cydia.mm
+++ b/Cydia.mm
@@ -5445,14 +5445,10 @@ int main(int argc, char *argv[]) {
setuid(0);
setgid(0);
- int error;
-
- error = unlink("/var/cache/apt/pkgcache.bin");
- if (error != 0)
- _assert(error == ENOENT);
- error = unlink("/var/cache/apt/srcpkgcache.bin");
- if (error != 0)
- _assert(error == ENOENT);
+ if (unlink("/var/cache/apt/pkgcache.bin") == -1)
+ _assert(errno == ENOENT);
+ if (unlink("/var/cache/apt/srcpkgcache.bin") == -1)
+ _assert(errno == ENOENT);
/*Method alloc = class_getClassMethod([NSObject class], @selector(alloc));
alloc_ = alloc->method_imp;