Mercurial > hg > octave-lyh > gnulib-hg
changeset 1830:8139ee8d995b
(read_utmp): Use the new definitions.
author | Jim Meyering <jim@meyering.net> |
---|---|
date | Wed, 05 May 1999 13:34:18 +0000 |
parents | ae596af5aea1 |
children | ce6300b50014 |
files | lib/readutmp.c |
diffstat | 1 files changed, 4 insertions(+), 4 deletions(-) [+] |
line wrap: on
line diff
--- a/lib/readutmp.c +++ b/lib/readutmp.c @@ -70,12 +70,12 @@ 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 @@ utmp[n_read - 1] = *u; } - endutent (); + END_UTMP_ENT (); *n_entries = n_read; *utmp_buf = utmp;