Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/external/bsd/ipf/dist Fix build.



details:   https://anonhg.NetBSD.org/src/rev/be09ba7c0adc
branches:  trunk
changeset: 796645:be09ba7c0adc
user:      joerg <joerg%NetBSD.org@localhost>
date:      Thu Jun 12 22:15:25 2014 +0000

description:
Fix build.

diffstat:

 external/bsd/ipf/dist/lib/gethost.c   |  6 +++---
 external/bsd/ipf/dist/tools/ipnat_y.y |  4 ++--
 2 files changed, 5 insertions(+), 5 deletions(-)

diffs (45 lines):

diff -r 06c82345234a -r be09ba7c0adc external/bsd/ipf/dist/lib/gethost.c
--- a/external/bsd/ipf/dist/lib/gethost.c       Thu Jun 12 22:10:04 2014 +0000
+++ b/external/bsd/ipf/dist/lib/gethost.c       Thu Jun 12 22:15:25 2014 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: gethost.c,v 1.3 2014/06/12 17:23:06 christos Exp $     */
+/*     $NetBSD: gethost.c,v 1.4 2014/06/12 22:15:25 joerg Exp $        */
 
 /*
  * Copyright (C) 2012 by Darren Reed.
@@ -19,7 +19,7 @@
        struct netent *n;
        u_32_t addr;
 
-       memset(hostp, sizeof(*hostp));
+       memset(hostp, 0, sizeof(*hostp));
        if (!strcmp(name, "test.host.dots")) {
                if (family == AF_INET) {
                        hostp->in4.s_addr = htonl(0xfedcba98);
@@ -60,7 +60,7 @@
                struct addrinfo hints, *res;
                struct sockaddr_in6 *sin6;
 
-               memset(&hints, sizeof(hints));
+               memset(&hints, 0, sizeof(hints));
                hints.ai_family = PF_INET6;
 
                getaddrinfo(name, NULL, &hints, &res);
diff -r 06c82345234a -r be09ba7c0adc external/bsd/ipf/dist/tools/ipnat_y.y
--- a/external/bsd/ipf/dist/tools/ipnat_y.y     Thu Jun 12 22:10:04 2014 +0000
+++ b/external/bsd/ipf/dist/tools/ipnat_y.y     Thu Jun 12 22:15:25 2014 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: ipnat_y.y,v 1.2 2014/06/12 17:23:06 christos Exp $     */
+/*     $NetBSD: ipnat_y.y,v 1.3 2014/06/12 22:15:25 joerg Exp $        */
 
 /*
  * Copyright (C) 2012 by Darren Reed.
@@ -1763,7 +1763,7 @@
 
        nlen = strlen(name) + 1;
        n = calloc(1, (*np)->in_size + nlen);
-       memcpy(n, *np (*np)->in_size);
+       memcpy(n, *np, (*np)->in_size);
        free(*np);
        if (*np == nattop)
                nattop = n;



Home | Main Index | Thread Index | Old Index