Blame SOURCES/authd-1.4.3-gcc4.patch
|
|
12abbd |
--- authd-1.4.3/authd.c.old 2004-11-16 00:25:24.000000000 +0100
|
|
|
12abbd |
+++ authd-1.4.3/authd.c 2005-03-07 14:48:08.000000000 +0100
|
|
|
12abbd |
@@ -579,7 +579,7 @@
|
|
|
12abbd |
char *laddr = NULL, *raddr = NULL;
|
|
|
12abbd |
bool is_port_pair_found = false;
|
|
|
12abbd |
|
|
|
12abbd |
- static char *created_verbose(const char *name, unsigned long id) {
|
|
|
12abbd |
+ char *created_verbose(const char *name, unsigned long id) {
|
|
|
12abbd |
size_t n; time_t tod;
|
|
|
12abbd |
char *s, when[USERID_MAX_LEN], *host1, *port1, *host2, *port2;
|
|
|
12abbd |
const char *const UTC_FMT = "%FT%TZ", *const TZ_FMT = "(%a %EX %z/%Z)";
|
|
|
12abbd |
|
|
|
12abbd |
New for GCC 4.3:
|
|
|
12abbd |
--- authd-1.4.3/authd.old 2008-02-12 10:57:06.000000000 +0100
|
|
|
12abbd |
+++ authd-1.4.3/authd.c 2008-02-12 10:57:54.000000000 +0100
|
|
|
12abbd |
@@ -195,11 +195,11 @@
|
|
|
12abbd |
}
|
|
|
12abbd |
|
|
|
12abbd |
static char *created_pton_hex(const char *prefix) {
|
|
|
12abbd |
- struct in6_addr addr; const size_t SIZE = sizeof(addr.in6_u.u6_addr8);
|
|
|
12abbd |
+ struct in6_addr addr; const size_t SIZE = sizeof(addr.s6_addr);
|
|
|
12abbd |
|
|
|
12abbd |
assert(prefix != NULL);
|
|
|
12abbd |
if (inet_pton(AF_INET6, prefix, &addr) <= 0) return NULL;
|
|
|
12abbd |
- return created_addr_hex((const void *) addr.in6_u.u6_addr8, SIZE);
|
|
|
12abbd |
+ return created_addr_hex((const void *) addr.s6_addr, SIZE);
|
|
|
12abbd |
}
|
|
|
12abbd |
|
|
|
12abbd |
static void create_opt(int argc, char *argv[]) {
|