comparison src/evdev-plug/ed_internals.c @ 2187:9a7822a4762e

fix warnings
author mf0102 <0102@gmx.at>
date Sun, 25 Nov 2007 18:03:23 +0100
parents d124034ebea3
children 581a057768c2
comparison
equal deleted inserted replaced
2186:a509498d76b9 2187:9a7822a4762e
316 } 316 }
317 } 317 }
318 } 318 }
319 break; 319 break;
320 } 320 }
321 default:
322 ;
321 } 323 }
322 324
323 return TRUE; 325 return TRUE;
324 } 326 }
325 327
412 g_string_append_len( device_file , 414 g_string_append_len( device_file ,
413 &buffer[(search_offset + submatch[3].rm_so)] , 415 &buffer[(search_offset + submatch[3].rm_so)] ,
414 submatch[3].rm_eo - submatch[3].rm_so ); 416 submatch[3].rm_eo - submatch[3].rm_so );
415 417
416 /* let's check if the filename actually exists in /dev */ 418 /* let's check if the filename actually exists in /dev */
417 g_string_printf( device_test , "/dev/input/%s" , device_file->str ); 419 g_string_printf( device_test , "/dev/input/%s" , (char*)device_file->str );
418 if ( !g_file_test( device_test->str , G_FILE_TEST_EXISTS ) ) 420 if ( !g_file_test( device_test->str , G_FILE_TEST_EXISTS ) )
419 { 421 {
420 /* it doesn't exist, mark as invalid device by nullifying device_file*/ 422 /* it doesn't exist, mark as invalid device by nullifying device_file*/
421 g_warning( _("event-device-plugin: device %s not found in /dev/input , skipping.\n") , device_file ); 423 g_warning( _("event-device-plugin: device %s not found in /dev/input , skipping.\n") , (char*)device_file );
422 g_string_free( device_file , TRUE ); 424 g_string_free( device_file , TRUE );
423 device_file = NULL; 425 device_file = NULL;
424 } 426 }
425 else 427 else
426 { 428 {