From 3ba1def22c28236894354f86cb8741780c00746a Mon Sep 17 00:00:00 2001 From: maya Date: Thu, 13 Dec 2018 08:39:34 +0000 Subject: [PATCH] Remove unused macro. --- lib/libc/inet/inet_cidr_pton.c | 10 ++-------- lib/libc/inet/inet_net_pton.c | 9 +-------- lib/libresolv/ns_date.c | 10 ++-------- 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 2911f45f2f74..5fc922221c10 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 57b978289e8b..35ba76eafeae 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 0360e9e7d211..31b3dc80089d 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 *);