From 3577a8cc2568a0733c54a843adbda9d41f77a1df Mon Sep 17 00:00:00 2001 From: Sascha Wildner Date: Thu, 26 Feb 2009 23:15:06 +0100 Subject: [PATCH] pppoed(8): Fix amd64 warnings. --- libexec/pppoed/pppoed.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/libexec/pppoed/pppoed.c b/libexec/pppoed/pppoed.c index 993512df79..d21e58d870 100644 --- a/libexec/pppoed/pppoed.c +++ b/libexec/pppoed/pppoed.c @@ -363,7 +363,7 @@ Spawn(const char *prog __unused, const char *acname, const char *provider, /* And send our request data to the waiting node */ if (debug) - syslog(LOG_INFO, "Sending original request to %s (%d bytes)", path, sz); + syslog(LOG_INFO, "Sending original request to %s (%zu bytes)", path, sz); if (NgSendData(ds, ngc.ourhook, request, sz) == -1) { syslog(LOG_ERR, "Cannot send original request to %s: %m", path); _exit(EX_OSERR); @@ -572,8 +572,8 @@ main(int argc, char *argv[]) } exec = (char *)alloca(sizeof DEFAULT_EXEC_PREFIX + strlen(label)); if (exec == NULL) { - fprintf(stderr, "%s: Cannot allocate %d bytes\n", prog, - (int)(sizeof DEFAULT_EXEC_PREFIX) + strlen(label)); + fprintf(stderr, "%s: Cannot allocate %zu bytes\n", prog, + sizeof DEFAULT_EXEC_PREFIX + strlen(label)); return EX_OSERR; } strcpy(exec, DEFAULT_EXEC_PREFIX); -- 2.41.0