aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCorinna Vinschen <corinna@vinschen.de>2013-04-19 09:13:27 +0000
committerCorinna Vinschen <corinna@vinschen.de>2013-04-19 09:13:27 +0000
commitffd672bec73a02ad28d5ae4f173ec46ad35a1e14 (patch)
tree153721110e9e7d17cb4fc9d6b9be13d5fd4b559f
parent7eb805f68dc06101274b13f7c0e1aeeaf0a787a4 (diff)
downloadnewlib-ffd672bec73a02ad28d5ae4f173ec46ad35a1e14.zip
newlib-ffd672bec73a02ad28d5ae4f173ec46ad35a1e14.tar.gz
newlib-ffd672bec73a02ad28d5ae4f173ec46ad35a1e14.tar.bz2
* newlib/libc/search/hash.c: Revert patch from 2012-08-08.
-rw-r--r--newlib/ChangeLog4
-rw-r--r--newlib/libc/search/hash.c6
2 files changed, 7 insertions, 3 deletions
diff --git a/newlib/ChangeLog b/newlib/ChangeLog
index 9d68e7a..29153f7 100644
--- a/newlib/ChangeLog
+++ b/newlib/ChangeLog
@@ -1,3 +1,7 @@
+2013-04-19 Corinna Vinschen <vinschen@redhat.com>
+
+ * newlib/libc/search/hash.c: Revert patch from 2012-08-08.
+
2013-04-16 Sebastian Huber <sebastian.huber@embedded-brains.de>
* libc/sys/rtems/sys/queue.h: Delete file.
diff --git a/newlib/libc/search/hash.c b/newlib/libc/search/hash.c
index 997acb3..2b102c8 100644
--- a/newlib/libc/search/hash.c
+++ b/newlib/libc/search/hash.c
@@ -143,7 +143,7 @@ _DEFUN(__hash_open, (file, flags, mode, info, dflags),
#ifdef __USE_INTERNAL_STAT64
(_stat64(file, &statbuf) && (errno == ENOENT))) {
#else
- (_stat(file, &statbuf) && (errno == ENOENT))) {
+ (stat(file, &statbuf) && (errno == ENOENT))) {
#endif
if (errno == ENOENT)
errno = 0; /* Just in case someone looks at errno */
@@ -159,7 +159,7 @@ _DEFUN(__hash_open, (file, flags, mode, info, dflags),
#ifdef __USE_INTERNAL_STAT64
_fstat64(hashp->fp, &statbuf) == 0 && statbuf.st_size == 0)
#else
- _fstat(hashp->fp, &statbuf) == 0 && statbuf.st_size == 0)
+ fstat(hashp->fp, &statbuf) == 0 && statbuf.st_size == 0)
#endif
new_table = 1;
@@ -341,7 +341,7 @@ init_hash(hashp, file, info)
#ifdef __USE_INTERNAL_STAT64
if (_stat64(file, &statbuf))
#else
- if (_stat(file, &statbuf))
+ if (stat(file, &statbuf))
#endif
return (NULL);
hashp->BSIZE = statbuf.st_blksize;