From: David Goulet Date: Thu, 10 Jul 2014 19:45:02 +0000 (-0400) Subject: Fix: signedness of the session live timer X-Git-Tag: v2.6.0-rc1~152 X-Git-Url: https://git.lttng.org/?p=lttng-tools.git;a=commitdiff_plain;h=d98ad589cd758f4a3167fb451a6e45d167b42942;hp=49ceaa707d6fd92526e6afb4beeca7bb77409fe2 Fix: signedness of the session live timer Fixes #806 Signed-off-by: David Goulet --- 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 */