Prefer fseeko to fseek.
authorEric Blake <ebb9@byu.net>
Mon, 30 Apr 2007 12:00:07 +0000 (12:00 +0000)
committerEric Blake <ebb9@byu.net>
Mon, 30 Apr 2007 12:00:07 +0000 (12:00 +0000)
* modules/getpass (Depends-on): Add fseeko.
* lib/getpass.c (getpass): Use fseeko, not fseek.

ChangeLog
lib/getpass.c
modules/getpass

index f00f151..8bc4824 100644 (file)
--- 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
index 5b39b6d..4ae2333 100644 (file)
@@ -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 @@ getpass (const char *prompt)
      == 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)
     {
index 52fc1a3..7a46504 100644 (file)
@@ -7,6 +7,7 @@ lib/getpass.c
 m4/getpass.m4
 
 Depends-on:
+fseeko
 getline
 stdbool