Репозиторий Sisyphus
Последнее обновление: 1 октября 2023 | Пакетов: 18631 | Посещений: 37862399
en ru br
Репозитории ALT
S:20110106-alt1
5.1: 2007.06.22-alt1
4.1: 2007.06.22-alt1
www.altlinux.org/Changes

Группа :: Система/Настройка/Оборудование
Пакет: input-utils

 Главная   Изменения   Спек   Патчи   Sources   Загрузить   Gear   Bugs and FR  Repocop 

Патч: input-utils-ffmvforce-on_exit-prototype-fix.diff
Скачать


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 <jdelvare@suse.de>
---
 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());
 
дизайн и разработка: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
текущий майнтейнер: Michael Shigorin