bt_ctf_stream_get_discarded_events_count(): return int
authorPhilippe Proulx <eeppeliteloop@gmail.com>
Fri, 9 Jun 2017 00:47:25 +0000 (20:47 -0400)
committerJérémie Galarneau <jeremie.galarneau@efficios.com>
Fri, 9 Jun 2017 21:03:27 +0000 (17:03 -0400)
Signed-off-by: Philippe Proulx <eeppeliteloop@gmail.com>
Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
include/babeltrace/ctf-writer/stream.h
lib/ctf-ir/stream.c

index 67422f677e22660109cd95bcd02d84f8528e0bef..56b6bff8c29edb10bd5e1da77050d4345d6c506f 100644 (file)
@@ -49,7 +49,7 @@ extern "C" {
  *
  * Returns the number of discarded events, a negative value on error.
  */
-extern int64_t bt_ctf_stream_get_discarded_events_count(
+extern int bt_ctf_stream_get_discarded_events_count(
                struct bt_ctf_stream *stream, uint64_t *count);
 
 /*
index fa1122e30b40f78c284a6106594309c822f9e8c4..3348eaed057ee2b05a13b2ffa1605ab744baa8b2 100644 (file)
@@ -998,20 +998,20 @@ end:
        return stream_class;
 }
 
-int64_t bt_ctf_stream_get_discarded_events_count(
+int bt_ctf_stream_get_discarded_events_count(
                struct bt_ctf_stream *stream, uint64_t *count)
 {
-       int64_t ret = 0;
+       int ret = 0;
 
        if (!stream) {
                BT_LOGW_STR("Invalid parameter: stream is NULL.");
-               ret = (int64_t) -1;
+               ret = -1;
                goto end;
        }
 
        if (!count) {
                BT_LOGW_STR("Invalid parameter: count is NULL.");
-               ret = (int64_t) -1;
+               ret = -1;
                goto end;
        }
 
@@ -1019,7 +1019,7 @@ int64_t bt_ctf_stream_get_discarded_events_count(
                BT_LOGW("Invalid parameter: stream is not a CTF writer stream: "
                        "stream-addr=%p, stream-name=\"%s\"",
                        stream, bt_ctf_stream_get_name(stream));
-               ret = (int64_t) -1;
+               ret = -1;
                goto end;
        }
 
This page took 0.026344 seconds and 4 git commands to generate.