[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
getpass and fseeko
From: |
Eric Blake |
Subject: |
getpass and fseeko |
Date: |
Sun, 29 Apr 2007 20:57:54 -0600 |
User-agent: |
Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.0.10) Gecko/20070221 Thunderbird/1.5.0.10 Mnenhy/0.7.5.666 |
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Now that stdio_.h recommends fseeko over fseek, is this okay to apply?
2007-04-29 Eric Blake <address@hidden>
* modules/getpass (Depends-on): Add fseeko.
* lib/getpass.c (getpass): Use fseeko, not fseek.
- --
Don't work too hard, make some time for fun as well!
Eric Blake address@hidden
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.5 (Cygwin)
Comment: Public key at home.comcast.net/~ericblake/eblake.gpg
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
iD8DBQFGNVsx84KuGfSFAYARAiDBAKDHuZXX63rn6cOh+bJPP6Xl0BEW+gCfeecf
OGlKp4eus6cwa02KsDo/++g=
=FW3F
-----END PGP SIGNATURE-----
Index: modules/getpass
===================================================================
RCS file: /sources/gnulib/gnulib/modules/getpass,v
retrieving revision 1.11
diff -u -p -r1.11 getpass
--- modules/getpass 13 Oct 2006 12:40:23 -0000 1.11
+++ modules/getpass 30 Apr 2007 02:54:27 -0000
@@ -7,6 +7,7 @@ lib/getpass.c
m4/getpass.m4
Depends-on:
+fseeko
getline
stdbool
Index: lib/getpass.c
===================================================================
RCS file: /sources/gnulib/gnulib/lib/getpass.c,v
retrieving revision 1.18
diff -u -p -r1.18 getpass.c
--- lib/getpass.c 27 Sep 2006 17:59:19 -0000 1.18
+++ lib/getpass.c 30 Apr 2007 02:54:27 -0000
@@ -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)
{
- getpass and fseeko,
Eric Blake <=