svn commit: r228647 - head/usr.bin/mail
Dimitry Andric
dim at FreeBSD.org
Sat Dec 17 16:30:42 UTC 2011
Author: dim
Date: Sat Dec 17 16:30:42 2011
New Revision: 228647
URL: http://svn.freebsd.org/changeset/base/228647
Log:
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
Modified:
head/usr.bin/mail/cmd1.c
head/usr.bin/mail/main.c
Modified: head/usr.bin/mail/cmd1.c
==============================================================================
--- head/usr.bin/mail/cmd1.c Sat Dec 17 16:20:27 2011 (r228646)
+++ head/usr.bin/mail/cmd1.c Sat Dec 17 16:30:42 2011 (r228647)
@@ -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);
}
Modified: head/usr.bin/mail/main.c
==============================================================================
--- head/usr.bin/mail/main.c Sat Dec 17 16:20:27 2011 (r228646)
+++ head/usr.bin/mail/main.c Sat Dec 17 16:30:42 2011 (r228647)
@@ -206,7 +206,7 @@ Usage: %s [-dEiInv] [-s subject] [-c cc-
%*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);
}
More information about the svn-src-head
mailing list