summaryrefslogtreecommitdiffstats
path: root/source4/smbd
diff options
context:
space:
mode:
authorMatthias Dieter Wallnöfer <mdw@samba.org>2011-06-06 22:40:20 +0200
committerMatthias Dieter Wallnöfer <mdw@samba.org>2011-06-09 09:35:22 +0200
commitd6fe38b99dde9abc91a3806ece93930e5530dda7 (patch)
tree45ef139677162f8f6b11370dedbb1edfbbd17e2f /source4/smbd
parent4d0c00bb33ec9fe54b8e87491001047d06525c70 (diff)
downloadsamba-d6fe38b99dde9abc91a3806ece93930e5530dda7.tar.gz
samba-d6fe38b99dde9abc91a3806ece93930e5530dda7.tar.xz
samba-d6fe38b99dde9abc91a3806ece93930e5530dda7.zip
s4:smbd/server.c - quiet "time_t" format string warnings by casts
Reviewed-by: Tridge
Diffstat (limited to 'source4/smbd')
-rw-r--r--source4/smbd/server.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/source4/smbd/server.c b/source4/smbd/server.c
index 6acccd14ae4..1be3b2885f6 100644
--- a/source4/smbd/server.c
+++ b/source4/smbd/server.c
@@ -178,7 +178,8 @@ _NORETURN_ static void max_runtime_handler(struct tevent_context *ev,
struct timeval t, void *private_data)
{
const char *binary_name = (const char *)private_data;
- DEBUG(0,("%s: maximum runtime exceeded - terminating, current ts: %d\n", binary_name, time(NULL)));
+ DEBUG(0,("%s: maximum runtime exceeded - terminating, current ts: %llu\n",
+ binary_name, (unsigned long long) time(NULL)));
exit(0);
}
@@ -438,7 +439,8 @@ static int binary_smbd_main(const char *binary_name, int argc, const char *argv[
discard_const(binary_name));
if (max_runtime) {
- DEBUG(0,("Called with maxruntime %d - current ts %d\n", max_runtime, time(NULL)));
+ DEBUG(0,("Called with maxruntime %d - current ts %llu\n",
+ max_runtime, (unsigned long long) time(NULL)));
tevent_add_timer(event_ctx, event_ctx,
timeval_current_ofs(max_runtime, 0),
max_runtime_handler,