1
0
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:
Matthias Dieter Wallnöfer 2010-11-28 16:06:19 +01:00
parent 7128c15b65
commit 96c1cd762d
2 changed files with 2 additions and 2 deletions

View File

@ -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++) {

View File

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