Do not use draft API
This commit is contained in:
@@ -1,5 +1,3 @@
|
|||||||
#define CZMQ_BUILD_DRAFT_API
|
|
||||||
|
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
@@ -122,14 +120,8 @@ static void *worker_task(zsock_t *pipe, char *disk_path) {
|
|||||||
exit(EXIT_FAILURE);
|
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(&msg);
|
||||||
zmsg_destroy(&reply);
|
|
||||||
|
|
||||||
printf("Sent reply from the worker\n");
|
|
||||||
}
|
}
|
||||||
|
|
||||||
guestfs_close(g);
|
guestfs_close(g);
|
||||||
|
|||||||
Reference in New Issue
Block a user