From: Jérémie Galarneau Date: Thu, 23 Aug 2018 23:06:15 +0000 (-0400) Subject: Fix: return 0 on successful location serialization X-Git-Tag: v2.11.0-rc1~113 X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=f7daf93a18ad80c6e32096383ad0ca61ab51129f;p=lttng-tools.git Fix: return 0 on successful location serialization Signed-off-by: Jérémie Galarneau --- diff --git a/src/common/location.c b/src/common/location.c index c71ec8a1b..241b6486e 100644 --- a/src/common/location.c +++ b/src/common/location.c @@ -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; }