Date: Sat, 17 Dec 2011 20:07:42 +0000 (UTC) From: Dimitry Andric <dim@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r228659 - head/usr.sbin/ctm/ctm_dequeue Message-ID: <201112172007.pBHK7gOH074786@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: dim Date: Sat Dec 17 20:07:42 2011 New Revision: 228659 URL: http://svn.freebsd.org/changeset/base/228659 Log: In usr.sbin/ctm/ctm_dequeue/ctm_dequeue.c, cast a printf field width parameter to int. MFC after: 1 week Modified: head/usr.sbin/ctm/ctm_dequeue/ctm_dequeue.c Modified: head/usr.sbin/ctm/ctm_dequeue/ctm_dequeue.c ============================================================================== --- head/usr.sbin/ctm/ctm_dequeue/ctm_dequeue.c Sat Dec 17 19:58:48 2011 (r228658) +++ head/usr.sbin/ctm/ctm_dequeue/ctm_dequeue.c Sat Dec 17 20:07:42 2011 (r228659) @@ -143,7 +143,7 @@ main(int argc, char **argv) */ npieces = atoi(&ftsent->fts_name[ftsent->fts_namelen-3]); piece = atoi(&ftsent->fts_name[ftsent->fts_namelen-7]); - err("%.*s %d/%d sent", ftsent->fts_namelen-8, ftsent->fts_name, + err("%.*s %d/%d sent", (int)(ftsent->fts_namelen-8), ftsent->fts_name, piece, npieces); if (chunk++ == num_to_send)
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201112172007.pBHK7gOH074786>