Craig Rodrigues wrote:
> I tried the following and was able to compile without warning:
> 
> Index: imsg.c
> ===================================================================
> --- imsg.c      (revision 290924)
> +++ imsg.c      (working copy)
> @@ -74,7 +74,7 @@
> 
>  again:
>         if (getdtablecount() + imsg_fd_overhead +
> -           (CMSG_SPACE(sizeof(int))-CMSG_SPACE(0))/sizeof(int)
> +           (int)((CMSG_SPACE(sizeof(int))-CMSG_SPACE(0))/sizeof(int))
>             >= getdtablesize()) {
>                 errno = EAGAIN;
>                 free(ifd);
> 
> The cast looks OK to me.  I can commit this to FreeBSD.
> Is something that OpenBSD would want to take?

I'm not a fan of the warning, but this seems reasonable. It's not especially
intrusive.

Reply via email to