From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 12413 invoked by alias); 19 Jan 2005 13:26:01 -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 12392 invoked from network); 19 Jan 2005 13:26:00 -0000 Received: from unknown (HELO sunsite.mff.cuni.cz) (195.113.15.26) by sourceware.org with SMTP; 19 Jan 2005 13:26:00 -0000 Received: from sunsite.mff.cuni.cz (sunsite.mff.cuni.cz [127.0.0.1]) by sunsite.mff.cuni.cz (8.13.1/8.13.1) with ESMTP id j0JDPwEl005227; Wed, 19 Jan 2005 14:25:58 +0100 Received: (from jj@localhost) by sunsite.mff.cuni.cz (8.13.1/8.13.1/Submit) id j0JDPwIT005226; Wed, 19 Jan 2005 14:25:58 +0100 Date: Wed, 19 Jan 2005 13:26:00 -0000 From: Jakub Jelinek To: Ulrich Drepper , Roland McGrath Cc: Glibc hackers Subject: [PATCH] Fix typos in asserts Message-ID: <20050119132558.GD4777@sunsite.mff.cuni.cz> Reply-To: Jakub Jelinek Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.4.1i X-SW-Source: 2005-01/txt/msg00046.txt.bz2 Hi! Guess these both are rather obvious typos. 2005-01-19 Jakub Jelinek * hurd/sigunwind.c (_hurdsig_longjmp_from_handler): Fix a typo in assert. * iconv/strtab.c (strtabfinalize): Likewise. --- libc/hurd/sigunwind.c.jj 2001-07-06 06:54:47.000000000 +0200 +++ libc/hurd/sigunwind.c 2005-01-19 14:19:02.099921985 +0100 @@ -1,5 +1,5 @@ /* longjmp cleanup function for unwinding past signal handlers. - Copyright (C) 1995, 1996, 1997, 1998 Free Software Foundation, Inc. + Copyright (C) 1995, 1996, 1997, 1998, 2005 Free Software Foundation, Inc. This file is part of the GNU C Library. The GNU C Library is free software; you can redistribute it and/or @@ -111,7 +111,7 @@ _hurdsig_longjmp_from_handler (void *dat link = (void *) &scp[1]; assert (! link->resource.next && ! link->resource.prevp); assert (link->thread.next == ss->active_resources); - assert (link->thread.prevp = &ss->active_resources); + assert (link->thread.prevp == &ss->active_resources); if (link->thread.next) link->thread.next->thread.prevp = &link->thread.next; ss->active_resources = link; --- libc/iconv/strtab.c.jj 2003-11-12 09:50:52.000000000 +0100 +++ libc/iconv/strtab.c 2005-01-19 14:16:23.463303386 +0100 @@ -1,5 +1,5 @@ /* C string table handling. - Copyright (C) 2000, 2001 Free Software Foundation, Inc. + Copyright (C) 2000, 2001, 2005 Free Software Foundation, Inc. Written by Ulrich Drepper , 2000. This program is free software; you can redistribute it and/or modify @@ -326,7 +326,7 @@ strtabfinalize (struct Strtab *st, size_ copylen = 1; copystrings (st->root, &endp, ©len); assert (copylen == st->total + 1); - assert (endp = retval + st->total + 1); + assert (endp == retval + st->total + 1); *size = copylen; return retval; Jakub