* misc/hsearch_r.c (hsearch_r): Remove duplicate test.

Patch by Chris Caputo <ccaputo@alt.net>.

2005-10-28  Kaz Kojima  <kkojima@rr.iij4u.or.jp>

	* sysdeps/unix/sh/sysdep.S: Remove unnecessary weak_alias.
	* sysdeps/unix/sysv/linux/sh/socket.S: Honor NO_WEAK_ALIAS.
This commit is contained in:
Ulrich Drepper 2005-10-30 19:06:52 +00:00
parent d935095e2a
commit 71b8b018dd
4 changed files with 20 additions and 6 deletions

View File

@ -1,3 +1,13 @@
2005-10-30 Ulrich Drepper <drepper@redhat.com>
* misc/hsearch_r.c (hsearch_r): Remove duplicate test.
Patch by Chris Caputo <ccaputo@alt.net>.
2005-10-28 Kaz Kojima <kkojima@rr.iij4u.or.jp>
* sysdeps/unix/sh/sysdep.S: Remove unnecessary weak_alias.
* sysdeps/unix/sysv/linux/sh/socket.S: Honor NO_WEAK_ALIAS.
2005-10-28 Thorsten Kukuk <kukuk@suse.de>
* nis/nss_nis/nis-publickey.c (_nss_nis_getpublickey): Fix off

View File

@ -1,4 +1,4 @@
/* Copyright (C) 1993, 1995, 1996, 1997, 2002 Free Software Foundation, Inc.
/* Copyright (C) 1993,1995,1996,1997,2002,2005 Free Software Foundation, Inc.
This file is part of the GNU C Library.
Contributed by Ulrich Drepper <drepper@gnu.ai.mit.edu>, 1993.
@ -206,7 +206,7 @@ hsearch_r (item, action, retval, htab)
{
/* If table is full and another entry should be entered return
with error. */
if (action == ENTER && htab->filled == htab->size)
if (htab->filled == htab->size)
{
__set_errno (ENOMEM);
*retval = NULL;

View File

@ -1,4 +1,4 @@
/* Copyright (C) 1999, 2000 Free Software Foundation, Inc.
/* Copyright (C) 1999, 2000, 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
@ -98,5 +98,3 @@ skip:
#endif
#endif
END(__syscall_error)
weak_alias (__syscall_error, syscall_error)

View File

@ -1,4 +1,4 @@
/* Copyright (C) 1999, 2000, 2003, 2004 Free Software Foundation, Inc.
/* Copyright (C) 1999, 2000, 2003, 2004, 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
@ -33,7 +33,11 @@
The .S files for the other calls just #define socket and #include this. */
#ifndef __socket
#ifndef NO_WEAK_ALIAS
#define __socket P(__,socket)
#else
#define __socket socket
#endif
#endif
#define PUSHARGS_1 mov.l r4,@-r15; \
@ -173,4 +177,6 @@ ENTRY (__socket)
PSEUDO_END (__socket)
#ifndef NO_WEAK_ALIAS
weak_alias (__socket, socket)
#endif