Fix: signedness of the session live timer
authorDavid Goulet <dgoulet@efficios.com>
Thu, 10 Jul 2014 19:45:02 +0000 (15:45 -0400)
committerDavid Goulet <dgoulet@efficios.com>
Thu, 10 Jul 2014 19:45:02 +0000 (15:45 -0400)
Fixes #806

Signed-off-by: David Goulet <dgoulet@efficios.com>
src/bin/lttng-sessiond/save.c
src/bin/lttng-sessiond/session.h

index 684c4edbf9c80d5dd3089dde71c6b130772efad8..90b3a3b9c9d025a3e5ffff9fd670e322f9da4e42 100644 (file)
@@ -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;
index 14ad7af0a8aac4aeb55fb3f444dd9bb3fe39e639..368b352fa22388c9edae452fda760535b767ccf5 100644 (file)
@@ -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 */
This page took 0.026367 seconds and 4 git commands to generate.