Source-Changes-HG archive

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

[src/trunk]: src/lib Remove unused macro.



details:   https://anonhg.NetBSD.org/src/rev/a00f5f2b7d10
branches:  trunk
changeset: 446647:a00f5f2b7d10
user:      maya <maya%NetBSD.org@localhost>
date:      Thu Dec 13 08:39:34 2018 +0000

description:
Remove unused macro.

diffstat:

 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(-)

diffs (88 lines):

diff -r e4fc76457c17 -r a00f5f2b7d10 lib/libc/inet/inet_cidr_pton.c
--- a/lib/libc/inet/inet_cidr_pton.c    Thu Dec 13 07:34:03 2018 +0000
+++ b/lib/libc/inet/inet_cidr_pton.c    Thu Dec 13 08:39:34 2018 +0000
@@ -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 @@
 
 #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 -r e4fc76457c17 -r a00f5f2b7d10 lib/libc/inet/inet_net_pton.c
--- a/lib/libc/inet/inet_net_pton.c     Thu Dec 13 07:34:03 2018 +0000
+++ b/lib/libc/inet/inet_net_pton.c     Thu Dec 13 08:39:34 2018 +0000
@@ -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 @@
 __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 -r e4fc76457c17 -r a00f5f2b7d10 lib/libresolv/ns_date.c
--- a/lib/libresolv/ns_date.c   Thu Dec 13 07:34:03 2018 +0000
+++ b/lib/libresolv/ns_date.c   Thu Dec 13 08:39:34 2018 +0000
@@ -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 @@
 
 #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 *);



Home | Main Index | Thread Index | Old Index