summaryrefslogtreecommitdiffstats
path: root/usr.bin/w/pr_time.c
diff options
context:
space:
mode:
authordelphij <delphij@FreeBSD.org>2009-09-08 01:11:23 +0000
committerdelphij <delphij@FreeBSD.org>2009-09-08 01:11:23 +0000
commit1128849cbd3e378ce3d0fefc6184da647f1bc080 (patch)
treea52647de286e5c26b5f01765e091a1a93aee778c /usr.bin/w/pr_time.c
parent44778f4664a282655b0f666f93d9b4fdacaa7bd3 (diff)
downloadFreeBSD-src-1128849cbd3e378ce3d0fefc6184da647f1bc080.zip
FreeBSD-src-1128849cbd3e378ce3d0fefc6184da647f1bc080.tar.gz
Constify format string pointer, otherwise this would trigger warning when
higher warning level is enabled.
Diffstat (limited to 'usr.bin/w/pr_time.c')
-rw-r--r--usr.bin/w/pr_time.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/usr.bin/w/pr_time.c b/usr.bin/w/pr_time.c
index 4576b5e..acf6f8c 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);
OpenPOWER on IntegriCloud