Skip to content

Commit

Permalink
Fix warning unused parameter 'reply_timestamp' under macOS
Browse files Browse the repository at this point in the history
  • Loading branch information
gsnw-sebast authored and auerswal committed Aug 31, 2024
1 parent 291656a commit c8b8141
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/fping.c
Original file line number Diff line number Diff line change
Expand Up @@ -2028,7 +2028,11 @@ int socket_can_read(struct timeval *timeout)
}

int receive_packet(int64_t wait_time,
#if HAVE_SO_TIMESTAMPNS
int64_t *reply_timestamp,
#else
int64_t *reply_timestamp __attribute__((unused)),
#endif
struct sockaddr *reply_src_addr,
size_t reply_src_addr_len,
char *reply_buf,
Expand Down

0 comments on commit c8b8141

Please sign in to comment.