1
0
mirror of https://github.com/samba-team/samba.git synced 2025-03-11 16:58:40 +03:00

r9252: 2 type fixes from Luke Mewburn <lukem@NetBSD.org>. Bugid #2934.

Jeremy.
(This used to be commit c63ad85b8c1aedd04a65e46c27a6e2661093847a)
This commit is contained in:
Jeremy Allison 2005-08-12 00:05:17 +00:00 committed by Gerald (Jerry) Carter
parent e14c6d62d8
commit 2ab5b8594e
2 changed files with 5 additions and 2 deletions

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

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