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);
_______________________________________________
svn-src-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"

Reply via email to