Subversion Repositories Projects

Compare Revisions

Ignore whitespace Rev 265 → Rev 266

/linux/gpio-event/app/gpio-event.c
205,9 → 205,9
argc -= optind;
argv += optind;
 
if (( fs = fopen( "/dev/gpio-event", "r" )) < 0 )
if (( fs = fopen( "/dev/gpio-event", "r" )) == NULL )
{
perror( "Unable to open /dev/gpio-event" );
perror( "Check to make sure gpio_event_drv has been loaded. Unable to open /dev/gpio-event" );
exit( 1 );
}