summaryrefslogtreecommitdiff
path: root/lib/readutmp.c
diff options
context:
space:
mode:
authorJim Meyering <jim@meyering.net>1999-05-05 13:34:18 +0000
committerJim Meyering <jim@meyering.net>1999-05-05 13:34:18 +0000
commit5ed8adaa2f8846c60d76716d540d935414a563f1 (patch)
tree7d009171c5b15ddff87961730df8bd430cd5d436 /lib/readutmp.c
parent65bc99850e2c34ca2e956b564146c14cb04898c2 (diff)
downloadgnulib-5ed8adaa2f8846c60d76716d540d935414a563f1.tar.gz
(read_utmp): Use the new definitions.
Diffstat (limited to 'lib/readutmp.c')
-rw-r--r--lib/readutmp.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/readutmp.c b/lib/readutmp.c
index 9fb4442c30..f395352994 100644
--- a/lib/readutmp.c
+++ b/lib/readutmp.c
@@ -70,12 +70,12 @@ read_utmp (const char *filename, int *n_entries, STRUCT_UTMP **utmp_buf)
Solaris' utmpname returns 1 upon success -- which is contrary
to what the GNU libc version does. In addition, older GNU libc
versions are actually void. */
- utmpname (filename);
+ UTMP_NAME_FUNCTION (filename);
- setutent ();
+ SET_UTMP_ENT ();
n_read = 0;
- while ((u = getutent ()) != NULL)
+ while ((u = GET_UTMP_ENT ()) != NULL)
{
++n_read;
utmp = (STRUCT_UTMP *) realloc (utmp, n_read * sizeof (STRUCT_UTMP));
@@ -84,7 +84,7 @@ read_utmp (const char *filename, int *n_entries, STRUCT_UTMP **utmp_buf)
utmp[n_read - 1] = *u;
}
- endutent ();
+ END_UTMP_ENT ();
*n_entries = n_read;
*utmp_buf = utmp;