Cleanup: remove private babeltrace.h
[babeltrace.git] / src / plugins / ctf / lttng-live / viewer-connection.c
index 4a74ff9ff2a18b7d7946f60307086f8961df17b6..420f732b4b90be73987fce5d0ab8f314e998cbcb 100644 (file)
@@ -373,7 +373,7 @@ int list_update_session(bt_value *results,
                        }
                        val = bt_value_signed_integer_get(btval);
                        /* max */
-                       val = max_t(int64_t, clients, val);
+                       val = bt_max_t(int64_t, clients, val);
                        bt_value_signed_integer_set(btval, val);
                }
 
@@ -1050,9 +1050,9 @@ ssize_t lttng_live_get_one_metadata_packet(struct lttng_live_trace *trace,
                goto error;
        }
 
-       data = zmalloc(len);
+       data = calloc(1, len);
        if (!data) {
-               BT_LOGE("relay data zmalloc: %s", strerror(errno));
+               BT_LOGE("relay data calloc: %s", strerror(errno));
                goto error;
        }
        ret_len = lttng_live_recv(viewer_connection, data, len);
This page took 0.023635 seconds and 4 git commands to generate.