about summary refs log tree commit diff
path: root/nss
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@gmail.com>2011-08-20 15:25:16 -0400
committerUlrich Drepper <drepper@gmail.com>2011-08-20 15:25:16 -0400
commit89f447edba330554fb50b19009938c8c19cc7414 (patch)
treecae1954a1c1b608eac02d0e6bc1e97faed261b70 /nss
parent5dc4290c5b587c9b1fa960588a83c8d6a63ce43b (diff)
downloadglibc-89f447edba330554fb50b19009938c8c19cc7414.tar.gz
glibc-89f447edba330554fb50b19009938c8c19cc7414.tar.xz
glibc-89f447edba330554fb50b19009938c8c19cc7414.zip
Minor optimizatin in alias lookup in files NSS module
Diffstat (limited to 'nss')
-rw-r--r--nss/nss_files/files-alias.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/nss/nss_files/files-alias.c b/nss/nss_files/files-alias.c
index 57cc982f77..0a722b9e25 100644
--- a/nss/nss_files/files-alias.c
+++ b/nss/nss_files/files-alias.c
@@ -1,5 +1,5 @@
 /* Mail alias file parser in nss_files module.
-   Copyright (C) 1996,97,98,99,2002,2006,2007 Free Software Foundation, Inc.
+   Copyright (C) 1996-1999,2002,2006,2007,2011 Free Software Foundation, Inc.
    This file is part of the GNU C Library.
    Contributed by Ulrich Drepper <drepper@cygnus.com>, 1996.
 
@@ -166,7 +166,7 @@ get_next_alias (const char *match, struct aliasent *result,
       char *line;
 
       /* Check whether the buffer is large enough for even trying to
-         read something.  */
+	 read something.  */
       if (room_left < 2)
 	goto no_more_room;
 
@@ -264,7 +264,7 @@ get_next_alias (const char *match, struct aliasent *result,
 		      if (listfile != NULL
 			  && (old_line = strdup (line)) != NULL)
 			{
-			  while (! feof (listfile))
+			  while (! feof_unlocked (listfile))
 			    {
 			      first_unused[room_left - 1] = '\xff';
 			      line = fgets_unlocked (first_unused, room_left,