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 f00f1512f0ab66d3592b499eb6294517031756d2..8bc4824940b84de51dfca57166162949e5bafb24 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 5b39b6d8132836c8010b9505d57a8ded0e8e3a46..4ae233305d756461a1dd9efee7ab4c305b875d5c 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 52fc1a3ee57440a1ddc104449a788c3e77c163d4..7a465048bafd27dbb20c682debe3c4a163f5038c 100644 (file)
@@ -7,6 +7,7 @@ lib/getpass.c
 m4/getpass.m4
 
 Depends-on:
+fseeko
 getline
 stdbool