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:
Dimitry Andric 2011-12-17 16:30:42 +00:00
parent 4b51c69976
commit 081aa5169d
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=228647
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);
}