source: scripts/patches/bash-2.05b-gcc34-1.patch@ 10ad9d7

clfs-1.2 clfs-2.1 clfs-3.0.0-systemd clfs-3.0.0-sysvinit systemd sysvinit
Last change on this file since 10ad9d7 was 7f65c0e, checked in by Jim Gifford <clfs@…>, 19 years ago

r625@server (orig r623): jim | 2005-10-31 12:43:24 -0800
Final Move

  • Property mode set to 100644
File size: 1016 bytes
RevLine 
[617118d]1Submitted By: Zack Winkles <winkie AT linuxfromscratch DOT org>
2Date: 2004-04-06
3Initial Package Version: 2.05b
4Origin: N/A
5Description: Fix some occurrences of syntax that GCC 3.4.0 doesn't like.
6
7--- bash-2.05b/lib/malloc/malloc.c.orig 2002-06-21 21:16:49.000000000 +0200
8+++ bash-2.05b/lib/malloc/malloc.c 2004-03-01 10:07:19.749437536 +0100
9@@ -236,7 +236,7 @@
10 8192UL, 16384UL, 32768UL, 65536UL, 131072UL, 262144UL, 524288UL,
11 1048576UL, 2097152UL, 4194304UL, 8388608UL, 16777216UL, 33554432UL,
12 67108864UL, 134217728UL, 268435456UL, 536870912UL, 1073741824UL,
13- 2147483648UL, 4294967296UL-1
14+ 2147483648UL, 4294967295UL
15 };
16
17 /* binsizes[x] == (1 << ((x) + 3)) */
18@@ -290,7 +290,7 @@
19
20 #if !defined (botch)
21 static void
22-botch (s, file, line)
23+botch (const char *s, const char *file, int line)
24 {
25 fprintf (stderr, "malloc: failed assertion: %s\n", s);
26 (void)fflush (stderr);
27@@ -879,6 +879,7 @@
28 busy[nunits] = 0;
29
30 free_return:
31+ ((void)0);
32
33 #ifdef MALLOC_STATS
34 _mstats.nmalloc[nunits]--;
Note: See TracBrowser for help on using the repository browser.