Do not use draft API

This commit is contained in:
2024-03-03 15:04:01 -05:00
parent 26af0a5a5d
commit eaf8dde6c3

View File

@@ -1,5 +1,3 @@
#define CZMQ_BUILD_DRAFT_API
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
@@ -122,14 +120,8 @@ static void *worker_task(zsock_t *pipe, char *disk_path) {
exit(EXIT_FAILURE);
}
zmsg_addstr(reply, "Hello from the worker!");
zmsg_set_routing_id(reply, zmsg_routing_id(msg));
zmsg_send(reply, pipe);
zmsg_destroy(&msg);
zmsg_destroy(&reply);
printf("Sent reply from the worker\n");
}
guestfs_close(g);