Commit b2c61168 authored by Dave Cheney's avatar Dave Cheney

lib9: fix warning under clang 3.1

Fixes #3534.

R=golang-dev, rsc
CC=golang-dev
https://golang.org/cl/6035054
parent d3889ff3
......@@ -16,8 +16,8 @@ p9ctime(long t)
tt = t;
tm = localtime(&tt);
snprint(buf, sizeof buf, "%3.3s %3.3s %02d %02d:%02d:%02d %3.3s %d\n",
"SunMonTueWedThuFriSat"+(tm->tm_wday*3),
"JanFebMarAprMayJunJulAugSepOctNovDec"+(tm->tm_mon*3),
&"SunMonTueWedThuFriSat"[tm->tm_wday*3],
&"JanFebMarAprMayJunJulAugSepOctNovDec"[tm->tm_mon*3],
tm->tm_mday,
tm->tm_hour,
tm->tm_min,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment