mirror of
https://github.com/samba-team/samba.git
synced 2025-01-22 22:04:08 +03:00
s4:introduce casts before outputs of "time_t" variables
Otherwise we are getting warnings on "NetBSD".
This commit is contained in:
parent
7128c15b65
commit
96c1cd762d
@ -61,7 +61,7 @@ void wins_hook(struct winsdb_handle *h, const struct winsdb_record *rec,
|
||||
wins_hook_action_string(action),
|
||||
rec->name->name,
|
||||
rec->name->type,
|
||||
rec->expire_time);
|
||||
(long int) rec->expire_time);
|
||||
if (!cmd) goto failed;
|
||||
|
||||
for (i=0; rec->addresses[i]; i++) {
|
||||
|
@ -1171,7 +1171,7 @@ static bool test_SetUserPass_level_ex(struct dcerpc_pipe *p,
|
||||
}
|
||||
|
||||
if (fields_present & SAMR_FIELD_COMMENT) {
|
||||
comment = talloc_asprintf(tctx, "comment: %ld\n", time(NULL));
|
||||
comment = talloc_asprintf(tctx, "comment: %ld\n", (long int) time(NULL));
|
||||
}
|
||||
|
||||
ZERO_STRUCT(u);
|
||||
|
Loading…
x
Reference in New Issue
Block a user