Skip to content

Commit

Permalink
Merge pull request #20 from tgorgdotcom/patch-1
Browse files Browse the repository at this point in the history
Update main.c so wake-on-arp can compile on clang 17
  • Loading branch information
nikp123 authored Oct 14, 2023
2 parents 36e1022 + 2b2e235 commit 4fb8cd9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -329,7 +329,7 @@ int parse_args() {

// calculate proper net mask
unsigned int subnet_bigendian = 0xffffffff << (32-mask_value);
m.subnet = __bswap_32(subnet_bigendian);
m.subnet = __builtin_bswap32(subnet_bigendian);
}

return 0;
Expand Down

0 comments on commit 4fb8cd9

Please sign in to comment.