From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 25658 invoked by alias); 13 Mar 2004 14:44:37 -0000 Mailing-List: contact libc-hacker-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: libc-hacker-owner@sources.redhat.com Received: (qmail 25642 invoked from network); 13 Mar 2004 14:44:37 -0000 Received: from unknown (HELO Cantor.suse.de) (195.135.220.2) by sources.redhat.com with SMTP; 13 Mar 2004 14:44:37 -0000 Received: from hermes.suse.de (Hermes.suse.de [195.135.221.8]) (using TLSv1 with cipher EDH-RSA-DES-CBC3-SHA (168/168 bits)) (No client certificate requested) by Cantor.suse.de (Postfix) with ESMTP id AB1362E8006 for ; Sat, 13 Mar 2004 15:44:36 +0100 (CET) To: Andreas Jaeger Cc: Glibc hackers Subject: Re: Fix warnings in idna.c References: From: Andreas Schwab X-Yow: Loni Anderson's hair should be LEGALIZED!! Date: Sat, 13 Mar 2004 14:44:00 -0000 In-Reply-To: (Andreas Jaeger's message of "Sat, 13 Mar 2004 11:02:29 +0100") Message-ID: User-Agent: Gnus/5.1006 (Gnus v5.10.6) Emacs/21.3.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-SW-Source: 2004-03/txt/msg00078.txt.bz2 Andreas Jaeger writes: > I just saw these warnings: > > idna.c:445: warning: passing arg 1 of `strlen' from incompatible pointer type > idna.c:445: warning: passing arg 1 of `__strdup' from incompatible pointer type > > Ok to commit the appended patch? That looks completely bogus. How is strcpy/strdup supposed to handle a uint32_t array? Andreas. -- Andreas Schwab, SuSE Labs, schwab@suse.de SuSE Linux AG, Maxfeldstraße 5, 90409 Nürnberg, Germany Key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5 "And now for something completely different."