comparison src/joystick/linux/SDL_sysjoystick.c @ 1752:97f20f2a1d85

SDL_sysjoystick.c:983: warning: 'return' with a value, in function returning void
author Sam Lantinga <slouken@libsdl.org>
date Mon, 01 May 2006 06:40:00 +0000
parents 92947e3a18db
children 2f381b48b05c
comparison
equal deleted inserted replaced
1751:a11c13151840 1752:97f20f2a1d85
978 Uint8 other_axis; 978 Uint8 other_axis;
979 979
980 #ifndef NO_LOGICAL_JOYSTICKS 980 #ifndef NO_LOGICAL_JOYSTICKS
981 if (SDL_joylist[joystick->index].fname == NULL) { 981 if (SDL_joylist[joystick->index].fname == NULL) {
982 SDL_joylist_head(i, joystick->index); 982 SDL_joylist_head(i, joystick->index);
983 return JS_HandleEvents(SDL_joylist[i].joy); 983 JS_HandleEvents(SDL_joylist[i].joy);
984 return;
984 } 985 }
985 #endif 986 #endif
986 987
987 while ((len=read(joystick->hwdata->fd, events, (sizeof events))) > 0) { 988 while ((len=read(joystick->hwdata->fd, events, (sizeof events))) > 0) {
988 len /= sizeof(events[0]); 989 len /= sizeof(events[0]);