From 1128849cbd3e378ce3d0fefc6184da647f1bc080 Mon Sep 17 00:00:00 2001 From: delphij Date: Tue, 8 Sep 2009 01:11:23 +0000 Subject: [PATCH] Constify format string pointer, otherwise this would trigger warning when higher warning level is enabled. --- usr.bin/w/pr_time.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/usr.bin/w/pr_time.c b/usr.bin/w/pr_time.c index 4576b5eb0426..acf6f8c987bd 100644 --- a/usr.bin/w/pr_time.c +++ b/usr.bin/w/pr_time.c @@ -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);