# HG changeset patch # User Eric Blake # Date 1177934407 0 # Node ID 0576f95aece5a3ce445aed67db461e864297e985 # Parent ed620dfb19901b5c9c937c73270466a680b85774 Prefer fseeko to fseek. * modules/getpass (Depends-on): Add fseeko. * lib/getpass.c (getpass): Use fseeko, not fseek. diff --git a/ChangeLog b/ChangeLog --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2007-04-30 Eric Blake + + Prefer fseeko to fseek. + * modules/getpass (Depends-on): Add fseeko. + * lib/getpass.c (getpass): Use fseeko, not fseek. + 2007-04-30 Sergey Poznyakoff * lib/argp-help.c (hol_entry_cmp): Option sorting algorithm diff --git a/lib/getpass.c b/lib/getpass.c --- 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) { diff --git a/modules/getpass b/modules/getpass --- a/modules/getpass +++ b/modules/getpass @@ -7,6 +7,7 @@ m4/getpass.m4 Depends-on: +fseeko getline stdbool