From: Ulrich Drepper Date: Sun, 10 Oct 1999 20:48:08 +0000 (+0000) Subject: Update. X-Git-Tag: cvs/pre-glibc-2_1_3~289 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=64ad0de291ebb06a0bb0ed9c6dd8e4069c9e7794;p=platform%2Fupstream%2Fglibc.git Update. * stdlib/xpg_basename.c (__xpg_basename): Don't return pointer to slash before the basename [PR libc/1383]. * argp/argp.h: Fix typo in last patch. --- diff --git a/ChangeLog b/ChangeLog index 17d7b4d..6f20754 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,10 @@ 1999-10-10 Ulrich Drepper + * stdlib/xpg_basename.c (__xpg_basename): Don't return pointer to + slash before the basename [PR libc/1383]. + + * argp/argp.h: Fix typo in last patch. + * sysdeps/powerpc/sysdep.h: New file. * sysdeps/unix/powerpc/sysdep.h: New file. * sysdeps/unix/sysv/linux/powerpc/sysdep.h: Include diff --git a/argp/argp.h b/argp/argp.h index adfc3e6..0d40572 100644 --- a/argp/argp.h +++ b/argp/argp.h @@ -445,9 +445,9 @@ extern error_t argp_err_exit_status; extern void argp_help (__const struct argp *__restrict __argp, FILE *__restrict __stream, unsigned __flags, char *__restrict __name) __THROW; -extern void __argp_help __P (__const struct argp *__restrict __argp, - FILE *__restrict __stream, unsigned __flags, - char *__name) __THROW; +extern void __argp_help (__const struct argp *__restrict __argp, + FILE *__restrict __stream, unsigned __flags, + char *__name) __THROW; /* The following routines are intended to be called from within an argp parsing routine (thus taking an argp_state structure as the first diff --git a/stdlib/xpg_basename.c b/stdlib/xpg_basename.c index b789bc9..0e36807 100644 --- a/stdlib/xpg_basename.c +++ b/stdlib/xpg_basename.c @@ -1,5 +1,5 @@ /* Return basename of given pathname according to the weird XPG specification. - Copyright (C) 1997 Free Software Foundation, Inc. + Copyright (C) 1997, 1999 Free Software Foundation, Inc. This file is part of the GNU C Library. Contributed by Ulrich Drepper , 1997. @@ -62,6 +62,9 @@ __xpg_basename (char *filename) while (p[1] != '\0') ++p; } + else + /* Go to the first character of the name. */ + ++p; } }