diff --git a/appl/ftp/ftpd/ftpcmd.y b/appl/ftp/ftpd/ftpcmd.y index 492bfaecd..723f07eba 100644 --- a/appl/ftp/ftpd/ftpcmd.y +++ b/appl/ftp/ftpd/ftpcmd.y @@ -671,8 +671,9 @@ rcmd { fromname = (char *) 0; restart_point = $3; /* XXX $3 is only "int" */ - reply(350, "Restarting at %ld. %s", restart_point, - "Send STORE or RETRIEVE to initiate transfer."); + reply(350, "Restarting at %ld. %s", + (long)restart_point, + "Send STORE or RETRIEVE to initiate transfer."); } ; diff --git a/appl/ftp/ftpd/ftpd.c b/appl/ftp/ftpd/ftpd.c index 9d17518a4..23319d1b9 100644 --- a/appl/ftp/ftpd/ftpd.c +++ b/appl/ftp/ftpd/ftpd.c @@ -225,7 +225,7 @@ char proctitle[BUFSIZ]; /* initial part of title */ *(file) == '/' ? "" : curdir(), file); \ else \ syslog(LOG_INFO, "%s %s%s = %ld bytes", \ - cmd, (*(file) == '/') ? "" : curdir(), file, cnt); \ + cmd, (*(file) == '/') ? "" : curdir(), file, (long)cnt); \ } static void ack (char *); @@ -1789,9 +1789,11 @@ myoob(int signo) if (strcmp(cp, "STAT\r\n") == 0) { if (file_size != (off_t) -1) reply(213, "Status: %ld of %ld bytes transferred", - byte_count, file_size); + (long)byte_count, + (long)file_size); else - reply(213, "Status: %ld bytes transferred", byte_count); + reply(213, "Status: %ld bytes transferred" + (long)byte_count); } #endif }