mirror of
https://git.savannah.nongnu.org/git/lwip.git
synced 2025-08-07 15:04:39 +08:00
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:
parent
ca7769e041
commit
f6d56e2937
@ -271,19 +271,6 @@ int ppp_vslprintf(char *buf, int buflen, char *fmt, va_list args) {
|
|||||||
(ip >> 16) & 0xff, (ip >> 8) & 0xff, ip & 0xff);
|
(ip >> 16) & 0xff, (ip >> 8) & 0xff, ip & 0xff);
|
||||||
str = num;
|
str = num;
|
||||||
break;
|
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 */
|
#if 0 /* need port */
|
||||||
case 't':
|
case 't':
|
||||||
time(&t);
|
time(&t);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user