diff options
author | Ulrich Drepper <drepper@redhat.com> | 1999-04-28 10:00:35 +0000 |
---|---|---|
committer | Ulrich Drepper <drepper@redhat.com> | 1999-04-28 10:00:35 +0000 |
commit | 925ed47cfb2729953655f001df6cb9bd82360e19 (patch) | |
tree | eb172b59d7ade049b0272d262a55eae573c03624 /libio | |
parent | 66f93c2d97c7a6299361805091513981b6277893 (diff) | |
download | glibc-925ed47cfb2729953655f001df6cb9bd82360e19.zip glibc-925ed47cfb2729953655f001df6cb9bd82360e19.tar.gz glibc-925ed47cfb2729953655f001df6cb9bd82360e19.tar.bz2 |
Update.
* libio/iofopncook.c (_IO_cookie_seek): Correct return value.
Patch by Peter Miller <millerp@canb.auug.org.au>.
1999-04-27 Thorsten Kukuk <kukuk@suse.de>
* sunrpc/pmap_clnt.c: Add own get_myaddress function, which
prefers loopback device.
1999-04-28 Ulrich Drepper <drepper@cygnus.com>
Diffstat (limited to 'libio')
-rw-r--r-- | libio/iofopncook.c | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/libio/iofopncook.c b/libio/iofopncook.c index 4f28ec2..7820fa3 100644 --- a/libio/iofopncook.c +++ b/libio/iofopncook.c @@ -1,4 +1,4 @@ -/* Copyright (C) 1993, 1995, 1997 Free Software Foundation, Inc. +/* Copyright (C) 1993, 1995, 1997, 1999 Free Software Foundation, Inc. This file is part of the GNU IO Library. This library is free software; you can redistribute it and/or @@ -81,10 +81,7 @@ _IO_cookie_seek (fp, offset, dir) pos = _IO_pos_0; _IO_pos_adjust (pos, offset); - if (cfile->io_functions.seek (cfile->cookie, pos, dir)) - return _IO_pos_BAD; - - return pos; + return cfile->io_functions.seek (cfile->cookie, pos, dir); } static int |