Browse Source

Rene Rebe:

* fixed net-tools and util-linux for gcc-3.4 - long lingering patches


git-svn-id: http://www.rocklinux.org/svn/rock-linux/trunk@3514 c5f82cb5-29bc-0310-9cd0-bff59a50e3bc
rocklinux
Rene Rebe 20 years ago
parent
commit
5f294edda5
2 changed files with 57 additions and 0 deletions
  1. +41
    -0
      package/base/net-tools/gcc34.patch
  2. +16
    -0
      package/base/util-linux/gcc34.patch

+ 41
- 0
package/base/net-tools/gcc34.patch

@ -0,0 +1,41 @@
The usual label at end of compound statement fixes for gcc-3.4.
- Rene Rebe <rene@rocklinux.org>
--- ./lib/inet_sr.c.vanilla 2004-07-04 20:31:07.000000000 +0200
+++ ./lib/inet_sr.c 2004-07-04 20:31:15.000000000 +0200
@@ -104,7 +104,6 @@
isnet = 1; break;
case 2:
isnet = 0; break;
- default:
}
/* Fill in the other fields. */
--- ./hostname.c.vanilla 2004-07-04 20:31:45.000000000 +0200
+++ ./hostname.c 2004-07-04 20:32:07.000000000 +0200
@@ -97,7 +97,6 @@
case EINVAL:
fprintf(stderr, _("%s: name too long\n"), program_name);
break;
- default:
}
exit(1);
};
@@ -116,7 +115,6 @@
case EINVAL:
fprintf(stderr, _("%s: name too long\n"), program_name);
break;
- default:
}
exit(1);
};
@@ -173,7 +171,6 @@
*p = '\0';
printf("%s\n", hp->h_name);
break;
- default:
}
}

+ 16
- 0
package/base/util-linux/gcc34.patch

@ -0,0 +1,16 @@
S.th. modified is not const ... for gcc-3.4.
- Rene Rebe <rene@rocklinux.org>
--- ./mount/mount.c.vanilla 2004-07-04 20:35:50.000000000 +0200
+++ ./mount/mount.c 2004-07-04 20:36:29.000000000 +0200
@@ -1104,7 +1104,7 @@
* Return 0 for success (either mounted sth or -a and NOAUTO was given)
*/
static int
-mount_one (const char *spec, const char *node, char *types, const char *opts,
+mount_one (const char *spec, char *node, char *types, const char *opts,
char *cmdlineopts, int freq, int pass) {
int status;
int status2;

Loading…
Cancel
Save