Skip to content

Commit

Permalink
Merge pull request #69 from janmojzis/utmputmpxtests
Browse files Browse the repository at this point in the history
sysdep/hasutmp{,x}addrv6.h-yes.c update test
  • Loading branch information
janmojzis authored Jul 17, 2022
2 parents c7543ae + 16a196e commit 079e53e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions sysdep/hasutmpaddrv6.h-yes.c
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,6 @@
int main(void) {

struct utmp ut;
if (sizeof ut.ut_addr_v6 < 16) return 111;
return 0;
int x[sizeof(ut.ut_addr_v6) < 16 ? -1 : 1] = {0};
return x[0];
}
4 changes: 2 additions & 2 deletions sysdep/hasutmpxaddrv6.h-yes.c
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,6 @@
int main(void) {

struct utmpx utx;
if (sizeof utx.ut_addr_v6 < 16) return 111;
return 0;
int x[sizeof(utx.ut_addr_v6) < 16 ? -1 : 1] = {0};
return x[0];
}

0 comments on commit 079e53e

Please sign in to comment.