From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Andreas Schwab Newsgroups: gmane.emacs.devel Subject: Re: Asynchronous DNS Date: Mon, 29 Feb 2016 09:41:12 +0100 Message-ID: References: <87fux7gb7o.fsf@gnus.org> <83wpqjvd2f.fsf@gnu.org> <87zivfobn4.fsf@gnus.org> <86y4ao5g1c.fsf@realize.ch> <87r3ggdo9f.fsf@gnus.org> <86twlb5yl4.fsf@realize.ch> <83d1rzz1mu.fsf@gnu.org> <86egcc49qu.fsf@realize.ch> <87io1k41cg.fsf@gnus.org> <56C8A89C.4020909@cs.ucla.edu> <861t873zlj.fsf@realize.ch> <56C8CD9D.1020504@cs.ucla.edu> <86twl22w7b.fsf@realize.ch> <87povils9h.fsf@gnus.org> <86wppqv76g.fsf@realize.ch> <87si0dwiki.fsf@gnus.org> <871t7w2pds.fsf@gnus.org> <87povg19cy.fsf@gnus.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1456735298 17717 80.91.229.3 (29 Feb 2016 08:41:38 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 29 Feb 2016 08:41:38 +0000 (UTC) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Feb 29 09:41:27 2016 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1aaJOP-0005D5-Kj for ged-emacs-devel@m.gmane.org; Mon, 29 Feb 2016 09:41:25 +0100 Original-Received: from localhost ([::1]:35166 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aaJOO-0006Kz-TH for ged-emacs-devel@m.gmane.org; Mon, 29 Feb 2016 03:41:24 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:37873) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aaJOH-0006Kg-OS for emacs-devel@gnu.org; Mon, 29 Feb 2016 03:41:21 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aaJOE-0004I2-4W for emacs-devel@gnu.org; Mon, 29 Feb 2016 03:41:17 -0500 Original-Received: from mx2.suse.de ([195.135.220.15]:42861) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aaJOD-0004GH-Tp for emacs-devel@gnu.org; Mon, 29 Feb 2016 03:41:14 -0500 X-Virus-Scanned: by amavisd-new at test-mx.suse.de Original-Received: from relay2.suse.de (charybdis-ext.suse.de [195.135.220.254]) by mx2.suse.de (Postfix) with ESMTP id 58077AC01 for ; Mon, 29 Feb 2016 08:41:12 +0000 (UTC) X-Yow: Vote for ME -- I'm well-tapered, half-cocked, ill-conceived and TAX-DEFERRED! In-Reply-To: <87povg19cy.fsf@gnus.org> (Lars Ingebrigtsen's message of "Mon, 29 Feb 2016 14:30:37 +1100") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.5 (gnu/linux) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x (no timestamps) [generic] X-Received-From: 195.135.220.15 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:200807 Archived-At: Lars Ingebrigtsen writes: > 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... Yes, it's a hole in the C type system that has been fixed in C++ (http://c-faq.com/ansi/constmismatch.html). Andreas. -- Andreas Schwab, SUSE Labs, schwab@suse.de GPG Key fingerprint = 0196 BAD8 1CE9 1970 F4BE 1748 E4D4 88E3 0EEA B9D7 "And now for something completely different."