Fix the following warning: ffmvforce.c: In function "main": ffmvforce.c:150: warning: passing argument 1 of "on_exit" from incompatible pointer type Signed-off-by: Jean Delvare --- ffmvforce.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) --- utils.orig/ffmvforce.c 2007-06-22 09:42:36.000000000 +0200 +++ utils/ffmvforce.c 2007-06-22 09:46:42.000000000 +0200 @@ -112,6 +112,11 @@ printf("level: %04x direction: %04x\n", first = 0; } +static void on_exit_func(int status, void *arg) +{ + SDL_Quit(); +} + int main(int argc, char** argv) { SDL_Surface* screen; @@ -147,7 +152,7 @@ int main(int argc, char** argv) fprintf(stderr, "Could not initialize SDL: %s\n", SDL_GetError()); exit(1); } - on_exit(SDL_Quit, NULL); + on_exit(on_exit_func, NULL); screen = SDL_SetVideoMode(WIN_W, WIN_H, 0, SDL_SWSURFACE); if (screen == NULL) { fprintf(stderr, "Could not set video mode: %s\n", SDL_GetError());