]> git.ipfire.org Git - thirdparty/dhcpcd.git/commitdiff
auth: Fix warning for non privsep builds
authorRoy Marples <roy@marples.name>
Wed, 3 Jun 2020 22:12:59 +0000 (23:12 +0100)
committerRoy Marples <roy@marples.name>
Wed, 3 Jun 2020 22:12:59 +0000 (23:12 +0100)
src/auth.c

index 38b43116176a04ace1d8cf94bf553b598c55a020..b7891b68774595e32e632129b060456708ae40ed 100644 (file)
@@ -483,6 +483,9 @@ get_next_rdm_monotonic_clock(struct auth *auth)
 static uint64_t
 get_next_rdm_monotonic(struct dhcpcd_ctx *ctx, struct auth *auth)
 {
+#ifndef PRIVSEP
+       UNUSED(ctx);
+#endif
 
        if (auth->options & DHCPCD_AUTH_RDM_COUNTER) {
                uint64_t rdm;