@@ -46,7 +46,7 @@
#define _DMMP_JSON_MAPS_KEY "maps"
#define _ERRNO_STR_BUFF_SIZE 256
#define _IPC_MAX_CMD_LEN 512
-/* ^ Was _MAX_CMD_LEN in ./libmultipath/uxsock.h */
+/* ^ Was MAX_CMD_LEN in ./libmultipath/uxsock.h */
#define _LAST_ERR_MSG_BUFF_SIZE 1024
struct dmmp_context {
@@ -6,5 +6,5 @@ int ux_socket_listen(const char *name);
int send_packet(int fd, const char *buf);
int recv_packet(int fd, char **buf, unsigned int timeout);
-#define _MAX_CMD_LEN 512
+#define MAX_CMD_LEN 512
#endif
@@ -59,7 +59,7 @@ struct client {
int fd;
vector cmdvec;
/* NUL byte at end */
- char cmd[_MAX_CMD_LEN + 1];
+ char cmd[MAX_CMD_LEN + 1];
struct strbuf reply;
struct handler *handler;
size_t cmd_len, len;
@@ -477,7 +477,7 @@ static int client_state_machine(struct client *c, struct vectors *vecs,
condlog(1, "%s: cli[%d]: failed to receive reply len: %zd",
__func__, c->fd, n);
c->error = -ECONNRESET;
- } else if (len <= 0 || len > _MAX_CMD_LEN) {
+ } else if (len <= 0 || len > MAX_CMD_LEN) {
condlog(1, "%s: cli[%d]: invalid command length (%zu bytes)",
__func__, c->fd, len);
c->error = -ECONNRESET;
Signed-off-by: Martin Wilck <mwilck@suse.com> --- libdmmp/libdmmp.c | 2 +- libmpathutil/uxsock.h | 2 +- multipathd/uxlsnr.c | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-)