X-Git-Url: http://git.ozlabs.org/?a=blobdiff_plain;f=pppd%2Futils.c;h=062b17e4a8db64cc11e42c43ffe184219f313f51;hb=18d1bf125b75c5211aefd678c36d622fef28f59f;hp=44f2e73407c50d5fc89473dfe174be9323527185;hpb=638647916bb20f23221b0fd5fd6a8bb79a020093;p=ppp.git diff --git a/pppd/utils.c b/pppd/utils.c index 44f2e73..062b17e 100644 --- a/pppd/utils.c +++ b/pppd/utils.c @@ -28,7 +28,7 @@ * OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. */ -#define RCSID "$Id: utils.c,v 1.24 2004/11/04 10:02:26 paulus Exp $" +#define RCSID "$Id: utils.c,v 1.25 2008/06/03 12:06:37 paulus Exp $" #include #include @@ -236,8 +236,8 @@ vslprintf(buf, buflen, fmt, args) base = 10; break; default: - *buf++ = '%'; --buflen; - *buf++ = 'l'; --buflen; + OUTCHAR('%'); + OUTCHAR('l'); --fmt; /* so %lz outputs %lz etc. */ continue; } @@ -527,7 +527,7 @@ static int llevel; /* level for logging */ void init_pr_log(prefix, level) - char *prefix; + const char *prefix; int level; { linep = line;