Add casts to quiet compiler warnings.
This commit is contained in:
@@ -100,7 +100,7 @@ get_boottime(struct timeval *tv)
|
||||
{
|
||||
struct utmpx *ut, key;
|
||||
|
||||
zero_bytes(&key, sizeof(key));
|
||||
memset(&key, 0, sizeof(key));
|
||||
key.ut_type = BOOT_TIME;
|
||||
if ((ut = getutxid(&key)) != NULL) {
|
||||
tv->tv_sec = ut->ut_tv.tv_sec;
|
||||
@@ -118,7 +118,7 @@ get_boottime(struct timeval *tv)
|
||||
{
|
||||
struct utmp *ut, key;
|
||||
|
||||
zero_bytes(&key, sizeof(key));
|
||||
memset(&key, 0, sizeof(key));
|
||||
key.ut_type = BOOT_TIME;
|
||||
if ((ut = getutid(&key)) != NULL) {
|
||||
tv->tv_sec = ut->ut_time;
|
||||
|
Reference in New Issue
Block a user