Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 1 Jun 2015 06:14:17 +0000 (UTC)
From:      Marcelo Araujo <araujo@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r283869 - head/contrib/diff/src
Message-ID:  <201506010614.t516EHBC062793@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: araujo (ports committer)
Date: Mon Jun  1 06:14:17 2015
New Revision: 283869
URL: https://svnweb.freebsd.org/changeset/base/283869

Log:
  Fix the wrong format, format specifies type 'int' but the argument has type
  'long', it was spotted by clang.
  
  Differential Revision:	D2663
  Reviewed by:		imp, rodrigc

Modified:
  head/contrib/diff/src/context.c

Modified: head/contrib/diff/src/context.c
==============================================================================
--- head/contrib/diff/src/context.c	Mon Jun  1 06:05:53 2015	(r283868)
+++ head/contrib/diff/src/context.c	Mon Jun  1 06:14:17 2015	(r283869)
@@ -62,7 +62,7 @@ print_context_label (char const *mark,
 	{
 	  time_t sec = inf->stat.st_mtime;
 	  verify (info_preserved, sizeof inf->stat.st_mtime <= sizeof sec);
-	  sprintf (buf, "%jd.%.9d", (intmax_t)sec, nsec);
+	  sprintf (buf, "%jd.%.9ld", (intmax_t)sec, nsec);
 	}
       fprintf (outfile, "%s %s\t%s\n", mark, inf->name, buf);
     }



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201506010614.t516EHBC062793>