diff options
author | Michał Łyszczek <michal.lyszczek@bofc.pl> | 2021-05-22 14:59:17 +0200 |
---|---|---|
committer | Michał Łyszczek <michal.lyszczek@bofc.pl> | 2021-05-22 17:09:34 +0200 |
commit | 44a2ab15b89ceb6a0e231f2fa53b3241add22362 (patch) | |
tree | ebd4e9c7fc5b0c10cb5b96ab8cedee35347f6dfc | |
parent | b421544094080dc0d7e37d2246356179c9265052 (diff) | |
download | psmq-44a2ab15b89ceb6a0e231f2fa53b3241add22362.tar.gz psmq-44a2ab15b89ceb6a0e231f2fa53b3241add22362.tar.bz2 psmq-44a2ab15b89ceb6a0e231f2fa53b3241add22362.zip |
inc/psmq.h.in: remove condition around PSMQ_MSG_MAX
This is defined during configure or during compilation and is not
for end user to change after compilation.
Signed-off-by: Michał Łyszczek <michal.lyszczek@bofc.pl>
-rw-r--r-- | configure.ac | 1 | ||||
-rw-r--r-- | inc/psmq.h.in | 2 |
2 files changed, 0 insertions, 3 deletions
diff --git a/configure.ac b/configure.ac index 8c377b0..9faa8e5 100644 --- a/configure.ac +++ b/configure.ac @@ -124,7 +124,6 @@ AS_IF([test $PSMQ_MAX_CLIENTS -lt 2], AC_ARG_VAR([PSMQ_MSG_MAX], [Maximum length of message (topic + payload)]) AS_IF([test "x$PSMQ_MSG_MAX" = x], [PSMQ_MSG_MAX="255"]) -#AC_DEFINE_UNQUOTED([PSMQ_MSG_MAX], [$PSMQ_MSG_MAX], [Maximum length of message (topic + payload]) # reason for this limit is documented in inc/psmq.h.in AS_IF([test $PSMQ_MSG_MAX -lt 6], diff --git a/inc/psmq.h.in b/inc/psmq.h.in index c2e91f4..7eb118d 100644 --- a/inc/psmq.h.in +++ b/inc/psmq.h.in @@ -22,9 +22,7 @@ enum PSMQ_IOCTL PSMQ_IOCTL_MAX }; -#ifndef PSMQ_MSG_MAX #define PSMQ_MSG_MAX (@PSMQ_MSG_MAX@) -#endif #define PSMQ_TOPIC(p) ((p).data) #define PSMQ_PAYLOAD(p) ((void *)((p).ctrl.cmd == PSMQ_CTRL_CMD_IOCTL ? \ |