Mercurial > hg > dhcpcd
changeset 5300:d6366bcea63f draft
auth: Fix warning for non privsep builds
| author | Roy Marples <roy@marples.name> |
|---|---|
| date | Wed, 03 Jun 2020 23:12:59 +0100 |
| parents | b7e676ac73c1 |
| children | e6f1372f2cf0 |
| files | src/auth.c |
| diffstat | 1 files changed, 3 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/src/auth.c Tue Jun 02 17:48:34 2020 +0100 +++ b/src/auth.c Wed Jun 03 23:12:59 2020 +0100 @@ -483,6 +483,9 @@ 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;
