summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authormaya <maya@NetBSD.org>2018-12-13 08:39:34 +0000
committermaya <maya@NetBSD.org>2018-12-13 08:39:34 +0000
commit99c28d70bff1bf342805ec0ae06ef5c094bbe35e (patch)
treeddf4fc22db5780eece8acad4b4e6c3fbe97a0ba6 /lib
parent3dd5b3aa4277f6055a64e5e3e3b502c2459fcfb0 (diff)
Remove unused macro.
Diffstat (limited to 'lib')
-rw-r--r--lib/libc/inet/inet_cidr_pton.c10
-rw-r--r--lib/libc/inet/inet_net_pton.c9
-rw-r--r--lib/libresolv/ns_date.c10
3 files changed, 5 insertions, 24 deletions
diff --git a/lib/libc/inet/inet_cidr_pton.c b/lib/libc/inet/inet_cidr_pton.c
index 2911f45f2f7..5fc922221c1 100644
--- a/lib/libc/inet/inet_cidr_pton.c
+++ b/lib/libc/inet/inet_cidr_pton.c
@@ -1,4 +1,4 @@
-/* $NetBSD: inet_cidr_pton.c,v 1.8 2012/03/20 17:08:13 matt Exp $ */
+/* $NetBSD: inet_cidr_pton.c,v 1.9 2018/12/13 08:42:26 maya Exp $ */
/*
* Copyright (c) 2004 by Internet Systems Consortium, Inc. ("ISC")
@@ -22,7 +22,7 @@
#if 0
static const char rcsid[] = "Id: inet_cidr_pton.c,v 1.6 2005/04/27 04:56:19 sra Exp";
#else
-__RCSID("$NetBSD: inet_cidr_pton.c,v 1.8 2012/03/20 17:08:13 matt Exp $");
+__RCSID("$NetBSD: inet_cidr_pton.c,v 1.9 2018/12/13 08:42:26 maya Exp $");
#endif
#endif
@@ -45,12 +45,6 @@ __RCSID("$NetBSD: inet_cidr_pton.c,v 1.8 2012/03/20 17:08:13 matt Exp $");
#include "port_after.h"
-#ifdef SPRINTF_CHAR
-# define SPRINTF(x) strlen(sprintf/**/x)
-#else
-# define SPRINTF(x) ((size_t)sprintf x)
-#endif
-
#ifdef __weak_alias
__weak_alias(inet_cidr_pton,_inet_cidr_pton)
#endif
diff --git a/lib/libc/inet/inet_net_pton.c b/lib/libc/inet/inet_net_pton.c
index 57b978289e8..35ba76eafea 100644
--- a/lib/libc/inet/inet_net_pton.c
+++ b/lib/libc/inet/inet_net_pton.c
@@ -20,7 +20,7 @@
#if 0
static const char rcsid[] = "Id: inet_net_pton.c,v 1.4.2.1 2002/08/02 02:17:21 marka Exp ";
#else
-__RCSID("$NetBSD: inet_net_pton.c,v 1.4 2012/03/20 17:08:13 matt Exp $");
+__RCSID("$NetBSD: inet_net_pton.c,v 1.5 2018/12/13 08:44:11 maya Exp $");
#endif
#endif
@@ -47,13 +47,6 @@ __RCSID("$NetBSD: inet_net_pton.c,v 1.4 2012/03/20 17:08:13 matt Exp $");
__weak_alias(inet_net_pton,_inet_net_pton)
#endif
-#ifdef SPRINTF_CHAR
-# define SPRINTF(x) strlen(sprintf/**/x)
-#else
-# define SPRINTF(x) ((size_t)sprintf x)
-#endif
-
-
/*
* static int
* inet_net_pton_ipv4(src, dst, size)
diff --git a/lib/libresolv/ns_date.c b/lib/libresolv/ns_date.c
index 0360e9e7d21..31b3dc80089 100644
--- a/lib/libresolv/ns_date.c
+++ b/lib/libresolv/ns_date.c
@@ -1,4 +1,4 @@
-/* $NetBSD: ns_date.c,v 1.1 2012/11/15 18:48:48 christos Exp $ */
+/* $NetBSD: ns_date.c,v 1.2 2018/12/13 08:39:34 maya Exp $ */
/*
* Copyright (c) 2004 by Internet Systems Consortium, Inc. ("ISC")
@@ -21,7 +21,7 @@
#if 0
static const char rcsid[] = "Id: ns_date.c,v 1.6 2005/04/27 04:56:39 sra Exp ";
#else
-__RCSID("$NetBSD: ns_date.c,v 1.1 2012/11/15 18:48:48 christos Exp $");
+__RCSID("$NetBSD: ns_date.c,v 1.2 2018/12/13 08:39:34 maya Exp $");
#endif
/* Import. */
@@ -38,12 +38,6 @@ __RCSID("$NetBSD: ns_date.c,v 1.1 2012/11/15 18:48:48 christos Exp $");
#include "port_after.h"
-#ifdef SPRINTF_CHAR
-# define SPRINTF(x) strlen(sprintf/**/x)
-#else
-# define SPRINTF(x) ((size_t)sprintf x)
-#endif
-
/* Forward. */
static int datepart(const char *, int, int, int, int *);