This returns an int, not a long int or an ssize_t (as one test was
inconsistently assuming).
libctf/ChangeLog
2021-01-05 Nick Alcock <nick.alcock@oracle.com>
* testsuite/libctf-lookup/struct-iteration.c (main):
ctf_member_count returns an int.
+2021-01-05 Nick Alcock <nick.alcock@oracle.com>
+
+ * testsuite/libctf-lookup/struct-iteration.c (main):
+ ctf_member_count returns an int.
+
2021-01-05 Nick Alcock <nick.alcock@oracle.com>
* Makefile.am (BASEDIR): New.
const char *name;
ctf_id_t membtype;
ssize_t offset;
- ssize_t icount = 0;
+ int icount = 0;
int err;
if (argc != 2)
goto nerr;
if (icount != ctf_member_count (fp, type))
- printf ("member counts differ: %li by direct iteration, "
- "%li by ctf_member_count\n", icount, ctf_member_count (fp, type));
+ printf ("member counts differ: %i by direct iteration, "
+ "%i by ctf_member_count\n", icount, ctf_member_count (fp, type));
ctf_dict_close (fp);
ctf_close (ctf);