summaryrefslogtreecommitdiffstats
path: root/ax25/axgetput
diff options
context:
space:
mode:
authorRalf Baechle <ralf@linux-mips.org>2009-06-14 13:27:50 +0000
committerRalf Baechle <ralf@linux-mips.org>2009-06-14 13:27:50 +0000
commita7c513d8dc2f4dc2f9a7ae91736f2f2870f2c892 (patch)
tree81ecb1f5a85b85335df4aff81c3eca43553a24d7 /ax25/axgetput
parent378a483bd88de4c91e34e0646e90b92cd2d03ec9 (diff)
Fix utmp time code
Thanks to using the antiquated time(2) call the microsecond field of the struct utmp being manipulated was never initialized resulting in random values. On some 64-bit systems this also manifested itself in below warnings. axspawn.c: In function ‘cleanup’: axspawn.c:1017: warning: passing argument 1 of ‘time’ from incompatible pointer type /usr/include/time.h:186: note: expected ‘time_t *’ but argument is of type ‘int32_t *’ [...] axspawn.c: In function ‘main’: [...] axspawn.c:1693: warning: passing argument 1 of ‘time’ from incompatible pointer type /usr/include/time.h:186: note: expected ‘time_t *’ but argument is of type ‘int32_t *’ Fixed by changing it to the recommended initialization sequenze based on gettimeofday().
Diffstat (limited to 'ax25/axgetput')
0 files changed, 0 insertions, 0 deletions