]> git.saurik.com Git - cydia.git/commitdiff
OMG I AM STUPID
authorJay Freeman (saurik) <saurik@saurk.com>
Sun, 13 Jul 2008 11:41:31 +0000 (11:41 +0000)
committerJay Freeman (saurik) <saurik@saurik.com>
Thu, 30 Sep 2010 07:08:07 +0000 (07:08 +0000)
Cydia.mm

index 975c184f920aa5668f3b327fb78df82ff23e656a..27113ffcc8e3e66a58a84ac4c43f2297c45f6781 100644 (file)
--- a/Cydia.mm
+++ b/Cydia.mm
@@ -5445,14 +5445,10 @@ int main(int argc, char *argv[]) {
     setuid(0);
     setgid(0);
 
     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;
 
     /*Method alloc = class_getClassMethod([NSObject class], @selector(alloc));
     alloc_ = alloc->method_imp;