svn commit: r196956 - head/usr.bin/w

Xin LI delphij at FreeBSD.org
Tue Sep 8 01:11:23 UTC 2009


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);


More information about the svn-src-all mailing list