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

Группа :: Игры/Прочее
Пакет: netris

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

Патч: netris-0.52-alt-warnings-Wall_fix.patch
Скачать


diff -ru netris-0.52.orig/curses.c netris-0.52/curses.c
--- netris-0.52.orig/curses.c	2003-08-13 08:33:02 +0700
+++ netris-0.52/curses.c	2006-10-09 16:03:06 +0700
@@ -23,8 +23,10 @@
 #include <sys/types.h>
 #include <unistd.h>
 #include <curses.h>
+#include <term.h>
 #include <string.h>
 #include <stdlib.h>
+#include <time.h>
 
 #ifdef NCURSES_VERSION
 # define HAVE_NCURSES
diff -ru netris-0.52.orig/game.c netris-0.52/game.c
--- netris-0.52.orig/game.c	2003-08-13 08:33:02 +0700
+++ netris-0.52/game.c	2006-10-09 16:04:29 +0700
@@ -26,6 +26,7 @@
 #include <string.h>
 #include <sys/types.h>
 #include <netinet/in.h>
+#include <time.h>
 
 enum { KT_left, KT_rotate, KT_right, KT_drop, KT_down,
 	KT_toggleSpy, KT_pause, KT_faster, KT_redraw, KT_numKeys };
@@ -94,7 +95,7 @@
 	int linesCleared, changed = 0;
 	int spied = 0, spying = 0, dropMode = 0;
 	int oldPaused = 0, paused = 0, pausedByMe = 0, pausedByThem = 0;
-	long pauseTimeLeft;
+	long pauseTimeLeft = 0L;
 	int pieceCount = 0;
 	int key;
 	char *p, *cmd;
diff -ru netris-0.52.orig/inet.c netris-0.52/inet.c
--- netris-0.52.orig/inet.c	2003-08-13 08:33:02 +0700
+++ netris-0.52/inet.c	2006-10-09 16:05:38 +0700
@@ -50,7 +50,7 @@
 	struct sockaddr_in addr;
 	struct hostent *host;
 	int sockListen;
-	int addrLen;
+	socklen_t addrLen;
 	short port;
 	int val1;
 	struct linger val2;
diff -ru netris-0.52.orig/util.c netris-0.52/util.c
--- netris-0.52.orig/util.c	2003-08-13 08:33:02 +0700
+++ netris-0.52/util.c	2006-10-09 16:05:16 +0700
@@ -28,6 +28,7 @@
 #include <sys/time.h>
 #include <netdb.h>
 #include <errno.h>
+#include <time.h>
 
 static MyEventType AlarmGenFunc(EventGenRec *gen, MyEvent *event);
 
@@ -35,7 +36,7 @@
 		{ &alarmGen, 0, FT_read, -1, AlarmGenFunc, EM_alarm };
 static EventGenRec *nextGen = &alarmGen;
 
-static myRandSeed = 1;
+static int myRandSeed = 1;
 
 static struct timeval baseTimeval;
 
@@ -259,13 +260,13 @@
 	return old;
 }
 
-ExtFunc volatile void die(char *msg)
+ExtFunc void die(char *msg)
 {
 	perror(msg);
 	exit(1);
 }
 
-ExtFunc volatile void fatal(char *msg)
+ExtFunc void fatal(char *msg)
 {
 	fprintf(stderr, "%s\n", msg);
 	exit(1);
@@ -319,7 +320,8 @@
 
 ExtFunc void RemoveEventGen(EventGenRec *gen)
 {
-	/* assert(gen->next != NULL);	/* Be more forgiving, for SIGINTs */
+	/* assert(gen->next != NULL); */
+	/* Be more forgiving, for SIGINTs */
 	if (gen->next) {
 		while (nextGen->next != gen)
 			nextGen = nextGen->next;
 
дизайн и разработка: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
текущий майнтейнер: Michael Shigorin