emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Asynchronous DNS


From: Lars Ingebrigtsen
Subject: Re: Asynchronous DNS
Date: Mon, 29 Feb 2016 14:30:37 +1100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/25.1.50 (gnu/linux)

A C question.  I did the obvious

              gai_suspend (&p->dns_request, 1, NULL);

and that gave me this warning:

process.c: In function 'Fdelete_process':
process.c:861:21: warning: passing argument 1 of 'gai_suspend' from 
incompatible pointer type [-Wincompatible-pointer-types]
        gai_suspend (&p->dns_request,
                     ^
In file included from process.c:38:0:
/usr/include/netdb.h:703:12: note: expected 'const struct gaicb * const*' but 
argument is of type 'struct gaicb **'
 extern int gai_suspend (const struct gaicb *const __list[], int __ent,
            ^

Is the only difference here really the consts?  If so, the following
cast should make stuff "work", but...

              gai_suspend ((const struct gaicb * const*)&p->dns_request,
                           1, NULL);



-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no





reply via email to

[Prev in Thread] Current Thread [Next in Thread]