From 1f7139d64ced7e055bd5a682d4319644e1ba43e3 Mon Sep 17 00:00:00 2001 From: dholland Date: Fri, 25 Dec 2015 00:44:37 +0000 Subject: This package once contained code that did illegal things with va_list to try to support passing a format and va_list pair as the data for a custom printf format in its own private printf clone. The offending code was unused and removed upstream in 2004, but the initial import of our package in 2005 included, without explanation, a patch reverting this. So the code has still been there, and (being illegal) it has now stopped compiling with clang. Delete the offending patch section. (And while here, add comments for the rest of this patch.) --- net/pppd/distinfo | 4 ++-- net/pppd/patches/patch-bc | 31 +++++-------------------------- 2 files changed, 7 insertions(+), 28 deletions(-) (limited to 'net') diff --git a/net/pppd/distinfo b/net/pppd/distinfo index 5b2919a457c..a555860c1b0 100644 --- a/net/pppd/distinfo +++ b/net/pppd/distinfo @@ -1,4 +1,4 @@ -$NetBSD: distinfo,v 1.11 2015/11/04 00:35:28 agc Exp $ +$NetBSD: distinfo,v 1.12 2015/12/25 00:44:37 dholland Exp $ SHA1 (ppp-2.4.3.tar.gz) = 5e2789f4dedc81943fa9f94c840cccc2407056f7 RMD160 (ppp-2.4.3.tar.gz) = 845821496bacb07d93bb7572a171854853ef722b @@ -32,7 +32,7 @@ SHA1 (patch-ay) = 93ccd90f6efa58bfe31105526499308ed35b9522 SHA1 (patch-az) = 9c7d9294325f84cb6fc2c6d17fdbc038d27d9a2a SHA1 (patch-ba) = 4293edb8b490fe31e07268a6d7001e1c9db8f323 SHA1 (patch-bb) = 9b17b12b45d9857eea42c2a6dc3704392c4df7c0 -SHA1 (patch-bc) = d53a2226166e84fa9ea049cdbfb52c1dcd0f1ed9 +SHA1 (patch-bc) = 1d51e2c44a5cdbe8609e1e9fccd6c41561b5a940 SHA1 (patch-bd) = 142545e81f05f5efbc35629bf6cf1e791f3dc4f9 SHA1 (patch-be) = e216f70f5fd2d6f5ad44a3c3ebc6146557a2deb9 SHA1 (patch-bf) = 16788a1508cd981ff8967915a86a1fb02e55330c diff --git a/net/pppd/patches/patch-bc b/net/pppd/patches/patch-bc index 132e9c47ac2..e3913cae744 100644 --- a/net/pppd/patches/patch-bc +++ b/net/pppd/patches/patch-bc @@ -1,4 +1,8 @@ -$NetBSD: patch-bc,v 1.1.1.1 2005/01/02 02:51:44 cube Exp $ +$NetBSD: patch-bc,v 1.2 2015/12/25 00:44:37 dholland Exp $ + +- remove unnecessary use of +- don't provide own strlcpy/strlcat unless needed +- use ctype.h correctly --- pppd/utils.c.orig 2004-11-04 11:02:26.000000000 +0100 +++ pppd/utils.c @@ -44,28 +48,3 @@ $NetBSD: patch-bc,v 1.1.1.1 2005/01/02 02:51:44 cube Exp $ prec = prec * 10 + c - '0'; c = *++fmt; } -@@ -287,19 +288,15 @@ vslprintf(buf, buflen, fmt, args) - (ip >> 16) & 0xff, (ip >> 8) & 0xff, ip & 0xff); - str = num; - break; --#if 0 /* not used, and breaks on S/390, apparently */ -- case 'r': -+ case 'r': { -+ va_list vlist; - f = va_arg(args, char *); --#ifndef __powerpc__ -- n = vslprintf(buf, buflen + 1, f, va_arg(args, va_list)); --#else -- /* On the powerpc, a va_list is an array of 1 structure */ -- n = vslprintf(buf, buflen + 1, f, va_arg(args, void *)); --#endif -+ vlist = va_arg(args, va_list); -+ n = vslprintf(buf, buflen + 1, f, vlist); - buf += n; - buflen -= n; - continue; --#endif -+ } - case 't': - time(&t); - str = ctime(&t); -- cgit v1.2.3