From mint-bounce@lists.fishpool.fi Fri May 30 17:38:02 2008 X-Virus-Scanned: amavisd-new at demon.co.uk Subject: [MiNT] Fix sysinfo.c From: Alan Hourihane To: mint Content-Type: multipart/mixed; boundary="=-jpzae3+9fllI0s/cmmy1" Date: Fri, 30 May 2008 22:32:11 +0100 Message-Id: <1212183131.11966.124.camel@jetpack.demon.co.uk> Mime-Version: 1.0 X-Mailer: Evolution 2.12.3 X-ecartis-version: Ecartis v1.0.0 Sender: mint-bounce@lists.fishpool.fi Errors-to: mint-bounce@lists.fishpool.fi X-original-sender: alanh@fairlite.demon.co.uk Precedence: bulk List-help: List-unsubscribe: List-Id: X-List-ID: List-subscribe: List-owner: List-post: --=-jpzae3+9fllI0s/cmmy1 Content-Type: text/plain Content-Transfer-Encoding: 7bit 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. --=-jpzae3+9fllI0s/cmmy1 Content-Disposition: attachment; filename=sysinfo.c.patch Content-Type: text/x-patch; name=sysinfo.c.patch; charset=UTF-8 Content-Transfer-Encoding: 7bit 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 --=-jpzae3+9fllI0s/cmmy1--