platform_unix.c
changeset 57 26c5e31040e5
parent 48 c88b39a9fa64
child 59 9bfe24a8dd3b
--- a/platform_unix.c	Sun May 30 17:07:53 2004 +0000
+++ b/platform_unix.c	Wed Jun 16 07:07:13 2004 +0000
@@ -329,21 +329,13 @@
     ptr = find_info_plist_version(mem);
     if (ptr != NULL)
     {
-        if (version_ok(ptr, version))
-            retval = 1;
-        else
+        retval = version_ok(ptr, version);
+        if (retval == -1)
+            _fatal("You seem to be all patched up already!");
+        else if (retval == 0)
         {
-            if (strcmp(ptr, newversion) == 0)
-            {
-                _fatal("You seem to be all patched up already!");
-                retval = -1;
-            } /* if */
-            else
-            {
-                _fatal("This patch applies to version '%s', but you have '%s'.",
-                        version, ptr);
-                retval = 0;
-            } /* else */
+            _fatal("This patch applies to version '%s', but you have '%s'.",
+                    version, ptr);
         } /* else */
     } /* if */