PPP, from PPPD upstream, take out unused %r conversion completely,

pppd: Take out unused %r conversion completely

This just removes some code surrounded by #if 0/#endif, which Fedora
apparently feels the need to patch...
This commit is contained in:
Sylvain Rochet 2014-04-15 22:34:24 +02:00
parent ca7769e041
commit f6d56e2937

View File

@ -271,19 +271,6 @@ int ppp_vslprintf(char *buf, int buflen, char *fmt, va_list args) {
(ip >> 16) & 0xff, (ip >> 8) & 0xff, ip & 0xff);
str = num;
break;
#if 0 /* not used, and breaks on S/390, apparently */
case 'r':
f = va_arg(args, char *);
#ifndef __powerpc__
n = ppp_vslprintf(buf, buflen + 1, f, va_arg(args, va_list));
#else
/* On the powerpc, a va_list is an array of 1 structure */
n = ppp_vslprintf(buf, buflen + 1, f, va_arg(args, void *));
#endif
buf += n;
buflen -= n;
continue;
#endif
#if 0 /* need port */
case 't':
time(&t);