~kernevil/ubuntu/trusty/bind9/sdlz-hmac-keys

« back to all changes in this revision

Viewing changes to lib/lwres/lwinetpton.c

  • Committer: Package Import Robot
  • Author(s): LaMont Jones, Matthew Grant, LaMont Jones
  • Date: 2012-10-29 08:37:49 UTC
  • mfrom: (1.9.2)
  • Revision ID: package-import@ubuntu.com-20121029083749-r9inpzl0yuj9xdlu
Tags: 1:9.8.4.dfsg-1
[Matthew Grant]

* Turn off dlopen as it was causing test compile failures.
* Add missing library .postrm files for debhelper

[LaMont Jones]

* New upstream version
* soname fixup
* Ack NMUs

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
/*
2
 
 * Copyright (C) 2004, 2005, 2007  Internet Systems Consortium, Inc. ("ISC")
 
2
 * Copyright (C) 2004, 2005, 2007, 2011, 2012  Internet Systems Consortium, Inc. ("ISC")
3
3
 * Copyright (C) 1996-2001  Internet Software Consortium.
4
4
 *
5
5
 * Permission to use, copy, modify, and/or distribute this software for any
19
19
 */
20
20
 
21
21
#if defined(LIBC_SCCS) && !defined(lint)
22
 
static char rcsid[] = "$Id: lwinetpton.c,v 1.12 2007-06-19 23:47:22 tbox Exp $";
 
22
static char rcsid[] = "$Id$";
23
23
#endif /* LIBC_SCCS and not lint */
24
24
 
25
25
#include <config.h>
41
41
static int inet_pton4(const char *src, unsigned char *dst);
42
42
static int inet_pton6(const char *src, unsigned char *dst);
43
43
 
44
 
/*! 
 
44
/*!
45
45
 * int
46
46
 * lwres_net_pton(af, src, dst)
47
47
 *      convert from presentation format (which usually means ASCII printable)
103
103
                } else if (ch == '.' && saw_digit) {
104
104
                        if (octets == 4)
105
105
                                return (0);
106
 
                        *++tp = 0;
 
106
                        /*
 
107
                         * "clang --analyse" generates warnings using:
 
108
                         *              *++tp = 0;
 
109
                         */
 
110
                        tp++;
 
111
                        *tp = 0;
107
112
                        saw_digit = 0;
108
113
                } else
109
114
                        return (0);