[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[MiNT] Fix sysinfo.c



A small patch to unix/sysinfo.c as there's a problem because the value
is unsigned and thus could never be negative even though the value is
tested for negative values later.

Alan.
Index: unix/sysinfo.c
===================================================================
RCS file: /mint/mintlib/unix/sysinfo.c,v
retrieving revision 1.7
diff -u -r1.7 sysinfo.c
--- unix/sysinfo.c	24 Jan 2008 19:06:32 -0000	1.7
+++ unix/sysinfo.c	30 May 2008 21:31:18 -0000
@@ -221,7 +221,7 @@
     unsigned long patch_level = 0;
     char betatag[2] = "";
     int gotcha = 0;
-    unsigned long ver = Ssystem (2, 0, 0);
+    long ver = Ssystem (2, 0, 0);
 
     if (ver == -ENOSYS) {
       /* This is actually a bug in Ssystem () because the return code