fix efreet signedness issues.
authorbarbieri <barbieri@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Sat, 21 Mar 2009 17:00:55 +0000 (17:00 +0000)
committerbarbieri <barbieri@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Sat, 21 Mar 2009 17:00:55 +0000 (17:00 +0000)
char is unsigned on ARM and other platforms, force some types to be
signed as they can hold negative values.

By: Albin Tonnerre

git-svn-id: svn+ssh://svn.enlightenment.org/var/svn/e/trunk/efreet@39610 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

src/lib/efreet_menu.c

index 35994fb..b8d0fef 100644 (file)
@@ -61,11 +61,11 @@ struct Efreet_Menu_Internal
 
     Eina_List *layout;             /**< This menus layout */
     Eina_List *default_layout;     /**< Default layout */
-    char show_empty;    /**< Whether to show empty menus */
-    char in_line;       /**< Whether this meny can be inlined */
-    char inline_limit;  /**< Number of elements which triggers inline */
-    char inline_header; /**< Whether we should use the header name when this menu is inlined */
-    char inline_alias;  /**< Whether we should use the menu name when inlining */
+    signed char show_empty;    /**< Whether to show empty menus */
+    signed char in_line;       /**< Whether this meny can be inlined */
+    signed char inline_limit;  /**< Number of elements which triggers inline */
+    signed char inline_header; /**< Whether we should use the header name when this menu is inlined */
+    signed char inline_alias;  /**< Whether we should use the menu name when inlining */
 
     unsigned char seen_allocated:1;     /**< have we set the only_unallocated */
     unsigned char only_unallocated:1;   /**< Show only unallocated .desktops */
@@ -184,11 +184,11 @@ struct Efreet_Menu_Layout
     char *name;                      /**< The name of the element */
 
     /* The items below are for Menuname Layout elements */
-    char show_empty;    /**< Whether to show empty menus */
-    char in_line;       /**< Whether this meny can be inlined */
-    char inline_limit;  /**< Number of elements which triggers inline */
-    char inline_header; /**< Whether we should use the header name when this menu is inlined */
-    char inline_alias;  /**< Whether we should use the menu name when inlining */
+    signed char show_empty;    /**< Whether to show empty menus */
+    signed char in_line;       /**< Whether this meny can be inlined */
+    signed char inline_limit;  /**< Number of elements which triggers inline */
+    signed char inline_header; /**< Whether we should use the header name when this menu is inlined */
+    signed char inline_alias;  /**< Whether we should use the menu name when inlining */
 };
 
 /**