Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 8 Sep 2009 01:11:23 +0000 (UTC)
From:      Xin LI <delphij@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r196956 - head/usr.bin/w
Message-ID:  <200909080111.n881BNxQ031626@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: delphij
Date: Tue Sep  8 01:11:23 2009
New Revision: 196956
URL: http://svn.freebsd.org/changeset/base/196956

Log:
  Constify format string pointer, otherwise this would trigger warning when
  higher warning level is enabled.

Modified:
  head/usr.bin/w/pr_time.c

Modified: head/usr.bin/w/pr_time.c
==============================================================================
--- head/usr.bin/w/pr_time.c	Mon Sep  7 23:16:27 2009	(r196955)
+++ head/usr.bin/w/pr_time.c	Tue Sep  8 01:11:23 2009	(r196956)
@@ -58,7 +58,7 @@ pr_attime(time_t *started, time_t *now)
 	static wchar_t buf[256];
 	struct tm tp, tm;
 	time_t diff;
-	wchar_t *fmt;
+	const wchar_t *fmt;
 	int len, width, offset = 0;
 
 	tp = *localtime(started);



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