source: scripts/patches/inetutils-1.4.2-gcc4_fixes-1.patch@ bcbd90b

clfs-1.2 clfs-2.1 clfs-3.0.0-systemd clfs-3.0.0-sysvinit systemd sysvinit
Last change on this file since bcbd90b 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: 1.7 KB
RevLine 
[617118d]1# DIY Linux Patch
2Date: 2005-03-29
3Author: Refer Description
4Origin: Refer Description
5Maker: Greg Schafer <gschafer@zip.com.au>
6Upstream Status: ftp changes submitted but not yet applied
7Description: Fix compilation with GCC4
8
9http://savannah.gnu.org/cgi-bin/viewcvs/inetutils/inetutils/libinetutils/ttymsg.c.diff?r1=1.14&r2=1.15&diff_format=u
10http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=300080
11
12diff -Naur inetutils-1.4.2.orig/ftp/cmdtab.c inetutils-1.4.2/ftp/cmdtab.c
13--- inetutils-1.4.2.orig/ftp/cmdtab.c 2000-07-06 04:21:07.000000000 +0000
14+++ inetutils-1.4.2/ftp/cmdtab.c 2005-03-29 03:38:37.000000000 +0000
15@@ -109,7 +109,7 @@
16 char userhelp[] = "send new user information";
17 char verbosehelp[] = "toggle verbose mode";
18
19-struct cmd cmdtab[] = {
20+struct cmd *cmdtab = {
21 { "!", shellhelp, 0, 0, 0, shell },
22 { "$", domachelp, 1, 0, 0, domacro },
23 { "account", accounthelp, 0, 1, 1, account},
24diff -Naur inetutils-1.4.2.orig/ftp/extern.h inetutils-1.4.2/ftp/extern.h
25--- inetutils-1.4.2.orig/ftp/extern.h 2000-08-09 05:44:23.000000000 +0000
26+++ inetutils-1.4.2/ftp/extern.h 2005-03-29 03:38:50.000000000 +0000
27@@ -137,7 +137,7 @@
28
29 extern jmp_buf abortprox;
30 extern int abrtflag;
31-extern struct cmd cmdtab[];
32+extern struct cmd *cmdtab;
33 extern FILE *cout;
34 extern int data;
35 extern char *home;
36diff -Naur inetutils-1.4.2.orig/libinetutils/ttymsg.c inetutils-1.4.2/libinetutils/ttymsg.c
37--- inetutils-1.4.2.orig/libinetutils/ttymsg.c 2001-11-01 15:52:19.000000000 +0000
38+++ inetutils-1.4.2/libinetutils/ttymsg.c 2005-03-29 03:39:21.000000000 +0000
39@@ -132,7 +132,7 @@
40 }
41 if (wret)
42 {
43- (char *)iov->iov_base += wret;
44+ iov->iov_base = (char *)iov->iov_base + wret;
45 iov->iov_len -= wret;
46 }
47 continue;
Note: See TracBrowser for help on using the repository browser.