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
This commit is contained in:
dim 2011-12-17 16:30:42 +00:00
parent f8b4a766de
commit 3aeee4ad81
2 changed files with 2 additions and 2 deletions

View File

@ -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);
}

View File

@ -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);
}