]> git.michaelhowe.org Git - packages/o/openafs.git/commit
Fix ktime test on 64-bit systems
authorRuss Allbery <rra@stanford.edu>
Wed, 14 Jul 2010 17:02:08 +0000 (10:02 -0700)
committerRuss Allbery <rra@debian.org>
Wed, 14 Jul 2010 18:31:59 +0000 (11:31 -0700)
commitd94a993eba86130e731f54e36780a0294ba00610
tree59865ee048115c1f125c0414e84c37e571b210b9
parenta2573efd113bde21209b6ca415ecdc46aaa39c92
Fix ktime test on 64-bit systems

0xffffffff is a bad representation for -1 when the size of the data
type may vary.  Rather than forcing everything to 32 bits and losing
later on platforms with 64-bit time_t, change the table to use time_t
and try to add a cast that will do the right thing.

Change-Id: Id532c9b7a1fc215dc9fd532592fecb2ea45597a0
Reviewed-on: http://gerrit.openafs.org/2420
Reviewed-by: Derrick Brashear <shadow@dementia.org>
Tested-by: Derrick Brashear <shadow@dementia.org>
(cherry picked from commit a1351d48410383090befd63b34407caf55b8f654)
tests/util/ktime-t.c