r9252: 2 type fixes from Luke Mewburn <lukem@NetBSD.org>. Bugid #2934.
authorJeremy Allison <jra@samba.org>
Fri, 12 Aug 2005 00:05:17 +0000 (00:05 +0000)
committerGerald (Jerry) Carter <jerry@samba.org>
Wed, 10 Oct 2007 16:00:29 +0000 (11:00 -0500)
Jeremy.

source/auth/auth_sam.c
source/nsswitch/winbindd_ads.c

index 023e441e24161cb4fdd9a18d0a2569d2e03b76d0..bb4df707ef7f482a9c22a48d8468a00a24a76343 100644 (file)
@@ -78,6 +78,7 @@ static BOOL logon_hours_ok(SAM_ACCOUNT *sampass)
        /* In logon hours first bit is Sunday from 12AM to 1AM */
        const uint8 *hours;
        struct tm *utctime;
+       time_t lasttime;
        uint8 bitmask, bitpos;
 
        hours = pdb_get_hours(sampass);
@@ -86,7 +87,8 @@ static BOOL logon_hours_ok(SAM_ACCOUNT *sampass)
                return True;
        }
 
-       utctime = localtime(&smb_last_time.tv_sec);
+       lasttime = (time_t)smb_last_time.tv_sec;
+       utctime = localtime(&lasttime);
 
        /* find the corresponding byte and bit */
        bitpos = (utctime->tm_wday * 24 + utctime->tm_hour) % 168;
index 3041b736f715ecedb487e96e28c7a42dc3764ca4..50899714475f6e2c15d565eefaa99b0f8858c256 100644 (file)
@@ -640,7 +640,8 @@ static NTSTATUS lookup_groupmem(struct winbindd_domain *domain,
        NTSTATUS status = NT_STATUS_UNSUCCESSFUL;
        char *sidstr;
        char **members;
-       int i, num_members;
+       int i;
+       size_t num_members;
        fstring sid_string;
        BOOL more_values;
        const char **attrs;