Add casts to quiet compiler warnings.

This commit is contained in:
Todd C. Miller
2010-06-01 09:54:03 -04:00
parent be3b7d615a
commit 2ee7524101
3 changed files with 16 additions and 9 deletions

View File

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