Mercurial > hg > octave-nkf > gnulib-hg
changeset 8768:0576f95aece5
Prefer fseeko to fseek.
* modules/getpass (Depends-on): Add fseeko.
* lib/getpass.c (getpass): Use fseeko, not fseek.
author | Eric Blake <ebb9@byu.net> |
---|---|
date | Mon, 30 Apr 2007 12:00:07 +0000 |
parents | ed620dfb1990 |
children | 40ddb6a5c2bc |
files | ChangeLog lib/getpass.c modules/getpass |
diffstat | 3 files changed, 9 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2007-04-30 Eric Blake <ebb9@byu.net> + + Prefer fseeko to fseek. + * modules/getpass (Depends-on): Add fseeko. + * lib/getpass.c (getpass): Use fseeko, not fseek. + 2007-04-30 Sergey Poznyakoff <gray@gnu.org.ua> * lib/argp-help.c (hol_entry_cmp): Option sorting algorithm
--- a/lib/getpass.c +++ b/lib/getpass.c @@ -1,4 +1,4 @@ -/* Copyright (C) 1992-2001, 2003, 2004, 2005, 2006 Free Software +/* Copyright (C) 1992-2001, 2003, 2004, 2005, 2006, 2007 Free Software Foundation, Inc. This file is part of the GNU C Library. @@ -142,7 +142,7 @@ == fileno (out). The POSIX restrictions are tricky and change from POSIX version to POSIX version, so play it safe and invoke fseek even if in != out. */ - fseek (out, 0, SEEK_CUR); + fseeko (out, 0, SEEK_CUR); if (buf != NULL) {