Fix: return 0 on successful location serialization
authorJérémie Galarneau <jeremie.galarneau@efficios.com>
Thu, 23 Aug 2018 23:06:15 +0000 (19:06 -0400)
committerJérémie Galarneau <jeremie.galarneau@efficios.com>
Fri, 24 Aug 2018 01:15:18 +0000 (21:15 -0400)
Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
src/common/location.c

index c71ec8a1b6859240c6d0b15351b39b6d99b674b4..241b6486ed10ca4e23ceb118cac3e23e86142723 100644 (file)
@@ -211,7 +211,6 @@ ssize_t lttng_trace_archive_location_serialize(
 {
        int ret;
        struct lttng_trace_archive_location_comm location_comm;
-       const size_t original_buffer_size = buffer->size;
 
        location_comm.type = (int8_t) location->type;
 
@@ -269,7 +268,7 @@ ssize_t lttng_trace_archive_location_serialize(
                abort();
        }
 
-       return buffer->size - original_buffer_size;
+       return 0;
 error:
        return -1;
 }
This page took 0.026119 seconds and 4 git commands to generate.