Date: Sun, 1 Jan 2012 22:06:41 +0000 (UTC) From: Dimitry Andric <dim@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-9@freebsd.org Subject: svn commit: r229216 - stable/9/usr.sbin/ctm/ctm_dequeue Message-ID: <201201012206.q01M6fMj033053@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: dim Date: Sun Jan 1 22:06:41 2012 New Revision: 229216 URL: http://svn.freebsd.org/changeset/base/229216 Log: MFC r228659: In usr.sbin/ctm/ctm_dequeue/ctm_dequeue.c, cast a printf field width parameter to int. Modified: stable/9/usr.sbin/ctm/ctm_dequeue/ctm_dequeue.c Directory Properties: stable/9/usr.sbin/ctm/ctm_dequeue/ (props changed) Modified: stable/9/usr.sbin/ctm/ctm_dequeue/ctm_dequeue.c ============================================================================== --- stable/9/usr.sbin/ctm/ctm_dequeue/ctm_dequeue.c Sun Jan 1 21:50:21 2012 (r229215) +++ stable/9/usr.sbin/ctm/ctm_dequeue/ctm_dequeue.c Sun Jan 1 22:06:41 2012 (r229216) @@ -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?201201012206.q01M6fMj033053>