]> git.ozlabs.org Git - ppp.git/blobdiff - pppd/utils.c
pppd: Remove unused rcsid variables
[ppp.git] / pppd / utils.c
index 6cf80fe3d229a2fab28ec00dd4b9149e0e11279f..12ae21aec54214dde3cd013eaf54956e36e0ebd9 100644 (file)
@@ -59,7 +59,6 @@
 #include "fsm.h"
 #include "lcp.h"
 
-static const char rcsid[] = RCSID;
 
 #if defined(SUNOS4)
 extern char *strerror();
@@ -296,6 +295,8 @@ vslprintf(buf, buflen, fmt, args)
        case 'q':               /* quoted string */
            quoted = c == 'q';
            p = va_arg(args, unsigned char *);
+           if (p == NULL)
+                   p = (unsigned char *)"<NULL>";
            if (fillch == '0' && prec >= 0) {
                n = prec;
            } else {
@@ -623,7 +624,7 @@ print_string(p, len, printer, arg)
                printer(arg, "\\t");
                break;
            default:
-               printer(arg, "\\%.3o", c);
+               printer(arg, "\\%.3o", (unsigned char) c);
            }
        }
     }