X-Git-Url: http://git.efficios.com/?p=babeltrace.git;a=blobdiff_plain;f=formats%2Flttng-live%2Flttng-live-comm.c;fp=formats%2Flttng-live%2Flttng-live-comm.c;h=6c5d4fd296f55fc9f23f4bba506432c3889f367c;hp=fef374a381c2b4aa685f418b30bcd3ebc82b8a91;hb=f3e4505ba1b7bacce5fc1cc942f4cfaa905b4e74;hpb=d97bac968c717fa2f1c2be4d8658f0e6a6e392fa diff --git a/formats/lttng-live/lttng-live-comm.c b/formats/lttng-live/lttng-live-comm.c index fef374a3..6c5d4fd2 100644 --- a/formats/lttng-live/lttng-live-comm.c +++ b/formats/lttng-live/lttng-live-comm.c @@ -53,22 +53,13 @@ #include #include #include +#include #include "lttng-live.h" #include "lttng-viewer-abi.h" #define ACTIVE_POLL_DELAY 100 /* ms */ -/* - * Memory allocation zeroed - */ -#define zmalloc(x) calloc(1, x) - -#ifndef max_t -#define max_t(type, a, b) \ - ((type) (a) > (type) (b) ? (type) (a) : (type) (b)) -#endif - static void ctf_live_packet_seek(struct bt_stream_pos *stream_pos, size_t index, int whence); static int add_traces(struct lttng_live_ctx *ctx);