libctf, testsuite: adjust for real return type of ctf_member_count
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.
This commit is contained in:
parent
70d3120f32
commit
0814dbfbfc
2 changed files with 8 additions and 3 deletions
|
@ -26,7 +26,7 @@ main (int argc, char *argv[])
|
|||
const char *name;
|
||||
ctf_id_t membtype;
|
||||
ssize_t offset;
|
||||
ssize_t icount = 0;
|
||||
int icount = 0;
|
||||
int err;
|
||||
|
||||
if (argc != 2)
|
||||
|
@ -69,8 +69,8 @@ main (int argc, char *argv[])
|
|||
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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue