From d98ad589cd758f4a3167fb451a6e45d167b42942 Mon Sep 17 00:00:00 2001 From: David Goulet Date: Thu, 10 Jul 2014 15:45:02 -0400 Subject: [PATCH] Fix: signedness of the session live timer Fixes #806 Signed-off-by: David Goulet --- src/bin/lttng-sessiond/save.c | 2 +- src/bin/lttng-sessiond/session.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/bin/lttng-sessiond/save.c b/src/bin/lttng-sessiond/save.c index 684c4edbf..90b3a3b9c 100644 --- a/src/bin/lttng-sessiond/save.c +++ b/src/bin/lttng-sessiond/save.c @@ -1566,7 +1566,7 @@ int save_session(struct ltt_session *session, goto end; } } else { - ret = config_writer_write_element_signed_int(writer, + ret = config_writer_write_element_unsigned_int(writer, config_element_live_timer_interval, session->live_timer); if (ret) { ret = LTTNG_ERR_SAVE_IO_FAIL; diff --git a/src/bin/lttng-sessiond/session.h b/src/bin/lttng-sessiond/session.h index 14ad7af0a..368b352fa 100644 --- a/src/bin/lttng-sessiond/session.h +++ b/src/bin/lttng-sessiond/session.h @@ -108,7 +108,7 @@ struct ltt_session { /* * Timer set when the session is created for live reading. */ - int live_timer; + unsigned int live_timer; }; /* Prototypes */ -- 2.34.1