On Sun, May 27, 2018 at 01:12:21AM +0300, Consus wrote:
> +++ b/usr.sbin/httpd/httpd.h
> @@ -195,7 +195,6 @@ struct imsgev {
>       if (IMSG_DATA_SIZE(imsg) < sizeof(*p))                  \
>               fatalx("bad length imsg received");             \
>  } while (0)
> -#define IMSG_DATA_SIZE(imsg) ((imsg)->hdr.len - IMSG_HEADER_SIZE)
>  #define MAX_IMSG_DATA_SIZE   (MAX_IMSGSIZE - IMSG_HEADER_SIZE)
What about moving MAX_IMSG_DATA_SIZE into imsg.h as well then?

Note that this is the only usage of it in base.

Reply via email to