From: Paul Eggert Date: Fri, 4 Aug 2023 01:27:35 +0000 (-0700) Subject: readutmp: fix comments X-Git-Tag: v1.0~967 X-Git-Url: https://gitweb.git.savannah.gnu.org/gitweb/?a=commitdiff_plain;h=8edf2ae3fcf7a20c28142dfada145f4a89808a05;p=gnulib.git readutmp: fix comments --- diff --git a/NEWS b/NEWS index f1c9b72aa9..265f9788bc 100644 --- a/NEWS +++ b/NEWS @@ -74,8 +74,11 @@ User visible incompatible changes Date Modules Changes -2023-08-02 readutmp Some STRUCT_UTMP members can be char *, +2023-08-03 readutmp Some STRUCT_UTMP members can be char *, 2023-08-01 rather than fixed-length char arrays. + On some platforms, the timestamp is ut_ts of type + struct timespec, not ut_tv of type struct timeval, + and ut_session is pid_t not long. read_utmp's 2nd arg is now idx_t * not size_t *. Link additionally with $(READUTMP_LIB). diff --git a/lib/readutmp.h b/lib/readutmp.h index b3cfaeb67c..01964d2622 100644 --- a/lib/readutmp.h +++ b/lib/readutmp.h @@ -59,7 +59,8 @@ struct gl_utmp { - /* All 'char *' here are of arbitrary length and malloc-allocated. */ + /* All 'char *' here are of arbitrary length and point to storage + with lifetime equal to that of this struct. */ char *ut_user; /* User name */ char *ut_id; /* Session ID */ char *ut_line; /* seat / device */