]> err.no Git - util-linux/commit
cal: remove gcc-ism from nl_langinfo() call
authorKarel Zak <kzak@redhat.com>
Tue, 10 Mar 2009 12:36:56 +0000 (13:36 +0100)
committerKarel Zak <kzak@redhat.com>
Tue, 10 Mar 2009 12:36:56 +0000 (13:36 +0100)
commitdcb54fafb128ab41772ae217afc6a7612e2cc446
tree10004ee5a2a760c3997ad83d2a013286370e1643
parent88a3372e88c4ccd2714c3d95ef4719140436214a
cal: remove gcc-ism from nl_langinfo() call

> On Tue, Mar 10, 2009 at 01:15:14PM +0100, Samuel Thibault wrote:
> That will only work with the gcc compiler, which allows to read a
> union field what you wrote in another.  Shouldn't
> (int)(intptr_t)nl_langinfo() be just fine?

Signed-off-by: Karel Zak <kzak@redhat.com>
misc-utils/cal.c