diff options
author | dim <dim@FreeBSD.org> | 2011-12-17 16:30:42 +0000 |
---|---|---|
committer | dim <dim@FreeBSD.org> | 2011-12-17 16:30:42 +0000 |
commit | 3aeee4ad81bee793e83e55a6d1156d433f63a8f7 (patch) | |
tree | 3ebfa4eb87e086118427901d7601b360d424a5a7 | |
parent | f8b4a766de2be2a507d2dd0f699a5b2926c67df8 (diff) | |
download | FreeBSD-src-3aeee4ad81bee793e83e55a6d1156d433f63a8f7.zip FreeBSD-src-3aeee4ad81bee793e83e55a6d1156d433f63a8f7.tar.gz |
In usr.bin/mail/cmd1.c, use the correct printf length modifier for a
ptrdiff_t. In usr.bin/mail/main.c, cast a field width to int.
MFC after: 1 week
-rw-r--r-- | usr.bin/mail/cmd1.c | 2 | ||||
-rw-r--r-- | usr.bin/mail/main.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/usr.bin/mail/cmd1.c b/usr.bin/mail/cmd1.c index 634381d..4782ec9 100644 --- a/usr.bin/mail/cmd1.c +++ b/usr.bin/mail/cmd1.c @@ -210,7 +210,7 @@ printhead(int mesg) int pdot(void) { - printf("%d\n", dot - &message[0] + 1); + printf("%td\n", dot - &message[0] + 1); return (0); } diff --git a/usr.bin/mail/main.c b/usr.bin/mail/main.c index 0d56580..0c4e2cb 100644 --- a/usr.bin/mail/main.c +++ b/usr.bin/mail/main.c @@ -206,7 +206,7 @@ Usage: %s [-dEiInv] [-s subject] [-c cc-addr] [-b bcc-addr] [-F] to-addr ...\n\ %*s [-sendmail-option ...]\n\ %s [-dEHiInNv] [-F] -f [name]\n\ %s [-dEHiInNv] [-F] [-u user]\n\ - %s [-d] -e [-f name]\n", __progname, strlen(__progname), "", + %s [-d] -e [-f name]\n", __progname, (int)strlen(__progname), "", __progname, __progname, __progname); exit(1); } |