]> git.ozlabs.org Git - ppp.git/commitdiff
pppd: Take out unused %r conversion completely
authorPaul Mackerras <paulus@samba.org>
Sun, 3 Feb 2013 03:56:18 +0000 (14:56 +1100)
committerPaul Mackerras <paulus@samba.org>
Sun, 3 Feb 2013 03:56:18 +0000 (14:56 +1100)
This just removes some code surrounded by #if 0/#endif, which Fedora
apparently feels the need to patch...

Signed-off-by: Paul Mackerras <paulus@samba.org>
pppd/utils.c

index eb771a540c118cad770548a64b9cadfa61f85211..6cf80fe3d229a2fab28ec00dd4b9149e0e11279f 100644 (file)
@@ -286,19 +286,6 @@ 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':
-           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
-           buf += n;
-           buflen -= n;
-           continue;
-#endif
        case 't':
            time(&t);
            str = ctime(&t);