* src/vm/global.h (bool): Changed to `unsigned int', as the MIPS Pro
authortwisti <none@none>
Wed, 7 Jun 2006 12:19:27 +0000 (12:19 +0000)
committertwisti <none@none>
Wed, 7 Jun 2006 12:19:27 +0000 (12:19 +0000)
compiler complains about signed bit fields. And I think that warning
is really ok.

* src/vm/suck.c (scandir_filter): Changed the signature define, as
only linux seems to use const.

src/vm/global.h
src/vm/suck.c

index e8c8fb377e641964d9c332d3140a032b02d2d471..0fce6b9b203c5267c0f2654bf6850a93b1bb0227 100644 (file)
@@ -33,7 +33,7 @@
             Joseph Wenninger
             Christian Thalinger
 
-   $Id: global.h 5013 2006-06-06 11:22:56Z twisti $
+   $Id: global.h 5021 2006-06-07 12:19:27Z twisti $
 
 */
 
@@ -51,10 +51,10 @@ typedef void *voidptr;                  /* generic pointer                    */
 typedef void (*functionptr) (void);     /* generic function pointer           */
 typedef u1* methodptr;
 
-typedef int   bool;                     /* boolean data type                  */
+typedef unsigned int bool;              /* boolean data type                  */
 
-#define true  1
-#define false 0
+#define true         1
+#define false        0
 
 
 /* immediate data union */
index 4d1ae17197eac1590699e6b2dd7e6ea39d0ad81a..4b22acf8046140a2118ff4f2e9c6c18995c82936 100644 (file)
@@ -28,7 +28,7 @@
 
    Changes:
 
-   $Id: suck.c 5020 2006-06-07 12:10:17Z twisti $
+   $Id: suck.c 5021 2006-06-07 12:19:27Z twisti $
 
 */
 
@@ -86,10 +86,10 @@ bool suck_init(void)
 
 *******************************************************************************/
 
-#if defined(__DARWIN__)
-static int scandir_filter(struct dirent *a)
-#else
+#if defined(__LINUX__)
 static int scandir_filter(const struct dirent *a)
+#else
+static int scandir_filter(struct dirent *a)
 #endif
 {
        s4 namlen;