clang-tidy: apply suggested fixes
[lttng-tools.git] / src / common / bytecode / bytecode.cpp
index 00b4f5e7bca300cb6d513b38a7c640b016978cc1..e66f03bd31b197e864c869e4d0e9e980536cc8f5 100644 (file)
@@ -40,10 +40,10 @@ int bytecode_init(struct lttng_bytecode_alloc **fb)
 static int32_t bytecode_reserve(struct lttng_bytecode_alloc **fb, uint32_t align, uint32_t len)
 {
        int32_t ret;
-       uint32_t padding = lttng_offset_align((*fb)->b.len, align);
-       uint32_t new_len = (*fb)->b.len + padding + len;
+       const uint32_t padding = lttng_offset_align((*fb)->b.len, align);
+       const uint32_t new_len = (*fb)->b.len + padding + len;
        uint32_t new_alloc_len = sizeof(struct lttng_bytecode_alloc) + new_len;
-       uint32_t old_alloc_len = (*fb)->alloc_len;
+       const uint32_t old_alloc_len = (*fb)->alloc_len;
 
        if (new_len > LTTNG_FILTER_MAX_LEN)
                return -EINVAL;
This page took 0.046884 seconds and 4 git commands to generate.