Fix build with gcc-3.4

This commit is contained in:
Kirill Ponomarev 2004-08-22 19:41:04 +00:00
parent 87d71cf966
commit f1a2ff6ffe
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=117051
3 changed files with 73 additions and 0 deletions

View File

@ -0,0 +1,23 @@
$FreeBSD$
--- src/map.cc.orig Sun Feb 25 08:50:07 2001
+++ src/map.cc Sun Aug 22 21:25:12 2004
@@ -1587,7 +1587,7 @@
width = w;
height = h;
- map = new (char *)[width];
+ map = new char * [width];
unsigned i;
for (i = 0; i < width; i++)
@@ -1728,7 +1728,7 @@
void GameMap::allocate_map(MapSquare ***m)
{
- *m = new (MapSquare *)[width];
+ *m = new MapSquare * [width];
int i;
for (i = 0; i < width; i++)
{

View File

@ -0,0 +1,16 @@
$FreeBSD$
--- dweputils/dwepcrack/weakksa.c.orig Sun Aug 22 21:34:55 2004
+++ dweputils/dwepcrack/weakksa.c Sun Aug 22 21:35:13 2004
@@ -168,8 +168,8 @@
memcpy(samples[B].s[samples[B].len].iv, iv, IV_SIZE);
samples[B].s[samples[B].len++].byte = iv[4] ^ 0xaa;
- fail:
- }
+ fail: break;
+ }
}
}
}

View File

@ -0,0 +1,34 @@
$FreeBSD$
--- cotty-0.4c.c.orig Sun Aug 22 21:39:06 2004
+++ cotty-0.4c.c Sun Aug 22 21:40:01 2004
@@ -748,6 +748,7 @@
return 1;
case normal:
case keep_current:
+ break;
}
return 2;
}
@@ -762,7 +763,8 @@
case normal:
case keep_current:
case direct:
- }
+ break;
+ }
return 2;
}
@@ -989,8 +991,8 @@
strcpy(tty_name[1],pty_name[0]);
strcpy(pty_name[1],tty_name[0]);
break;
- case normal:
- case keep_current:
+ case normal: break;
+ case keep_current: break;
}
/* we don't need those null fds anymore */
for (j=0;j<3;j++) {