Hurd: avoid PLT call to strtoul

This commit is contained in:
Thomas Schwinge 2012-05-10 15:37:23 -07:00 committed by Roland McGrath
parent 63643c85d4
commit 10589b4adb
2 changed files with 9 additions and 5 deletions

View File

@ -1,3 +1,8 @@
2012-05-10 Thomas Schwinge <thomas@schwinge.name>
* hurd/lookup-retry.c (__hurd_file_name_lookup_retry): Use
__strtoul_internal rather than strtoul.
2012-05-10 Pino Toscano <toscano.pino@tiscali.it>
* hurd/hurdsock.c (_hurd_socket_server): Check for negative domains,

View File

@ -1,6 +1,5 @@
/* hairy bits of Hurd file name lookup
Copyright (C) 1992,1993,1994,1995,1996,1997,1999,2001,2002,2003,2005
Free Software Foundation, Inc.
Copyright (C) 1992-2012 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
@ -193,7 +192,7 @@ __hurd_file_name_lookup_retry (error_t (*use_init_port)
char *end;
int save = errno;
errno = 0;
fd = (int) strtoul (&retryname[3], &end, 10);
fd = (int) __strtoul_internal (&retryname[3], &end, 10, 0);
if (end == NULL || errno || /* Malformed number. */
/* Check for excess text after the number. A slash
is valid; it ends the component. Anything else