* tests/test-readutmp.c: Include idx.h.
(main): Use idx_t instead of size_t.
+2023-08-04 Bruno Haible <bruno@clisp.org>
+
+ readutmp tests: Fix gcc warning (regression from yesterday).
+ * tests/test-readutmp.c: Include idx.h.
+ (main): Use idx_t instead of size_t.
+
2023-08-03 Paul Eggert <eggert@cs.ucla.edu>
readutmp: systemd supports only UTMP_FILE
#include <string.h>
#include <time.h>
+#include "idx.h"
#include "xalloc.h"
#define ELEMENT STRUCT_UTMP
main (int argc, char *argv[])
{
STRUCT_UTMP *entries;
- size_t num_entries;
+ idx_t num_entries;
if (read_utmp (UTMP_FILE, &num_entries, &entries, 0) < 0)
{
merge_sort_inplace (entries, num_entries,
XNMALLOC (num_entries, STRUCT_UTMP));
- size_t i;
+ idx_t i;
for (i = 0; i < num_entries; i++)
{
const STRUCT_UTMP *entry = &entries[i];