Skip to content

Commit

Permalink
fix utmpx ifdef
Browse files Browse the repository at this point in the history
02e16ad did a copy-paste for
utmpx, but forgot to change the ifdef appropriately
  • Loading branch information
christoph-zededa authored and djmdjm committed Sep 24, 2024
1 parent e03239f commit 0f5d19e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions loginrec.c
Original file line number Diff line number Diff line change
Expand Up @@ -723,7 +723,7 @@ set_utmpx_time(struct logininfo *li, struct utmpx *utx)
void
construct_utmpx(struct logininfo *li, struct utmpx *utx)
{
# ifdef HAVE_ADDR_V6_IN_UTMP
# ifdef HAVE_ADDR_V6_IN_UTMPX
struct sockaddr_in6 *sa6;
# endif
memset(utx, '\0', sizeof(*utx));
Expand Down Expand Up @@ -769,7 +769,7 @@ construct_utmpx(struct logininfo *li, struct utmpx *utx)
if (li->hostaddr.sa.sa_family == AF_INET)
utx->ut_addr = li->hostaddr.sa_in.sin_addr.s_addr;
# endif
# ifdef HAVE_ADDR_V6_IN_UTMP
# ifdef HAVE_ADDR_V6_IN_UTMPX
/* this is just a 128-bit IPv6 address */
if (li->hostaddr.sa.sa_family == AF_INET6) {
sa6 = ((struct sockaddr_in6 *)&li->hostaddr.sa);
Expand Down

0 comments on commit 0f5d19e

Please sign in to comment.