1
0
mirror of https://github.com/golang/go synced 2024-11-15 05:20:21 -07:00

[release-branch.go1] lib9: fix warning under clang 3.1

««« backport 73a10f76098b
lib9: fix warning under clang 3.1

Fixes #3534.

R=golang-dev, rsc
CC=golang-dev
https://golang.org/cl/6035054

»»»
This commit is contained in:
Dave Cheney 2012-06-13 16:23:32 -04:00
parent ec1cbabbac
commit 3a3d8826b4

View File

@ -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,