changeset 2187:9a7822a4762e

fix warnings
author mf0102 <0102@gmx.at>
date Sun, 25 Nov 2007 18:03:23 +0100
parents a509498d76b9
children 2984f6c7221a
files src/evdev-plug/ed_internals.c
diffstat 1 files changed, 4 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/src/evdev-plug/ed_internals.c	Sun Nov 25 17:47:11 2007 +0100
+++ b/src/evdev-plug/ed_internals.c	Sun Nov 25 18:03:23 2007 +0100
@@ -318,6 +318,8 @@
       }
       break;
     }
+    default:
+      ;
   }
 
   return TRUE;
@@ -414,11 +416,11 @@
             submatch[3].rm_eo - submatch[3].rm_so );
 
           /* let's check if the filename actually exists in /dev */
-          g_string_printf( device_test , "/dev/input/%s" , device_file->str );
+          g_string_printf( device_test , "/dev/input/%s" , (char*)device_file->str );
           if ( !g_file_test( device_test->str , G_FILE_TEST_EXISTS ) )
           {
             /* it doesn't exist, mark as invalid device by nullifying device_file*/
-            g_warning( _("event-device-plugin: device %s not found in /dev/input , skipping.\n") , device_file );
+            g_warning( _("event-device-plugin: device %s not found in /dev/input , skipping.\n") , (char*)device_file );
             g_string_free( device_file , TRUE );
             device_file = NULL;
           }