Page MenuHomeFreeBSD

WPA: Allow CLOCK_BOOTTIME and CLOCK_MONOTONIC to #define the same
ClosedPublic

Authored by imp on May 30 2024, 8:56 PM.
Tags
None
Referenced Files
Unknown Object (File)
Fri, May 31, 6:18 PM
Unknown Object (File)
Fri, May 31, 2:50 PM

Details

Summary

Historically, these have been differnet values, and only one was defined
or they were defined as different values. Now that they are about to be
the same value, add #ifdef to cope.

Sponsored by: Netflix

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

imp requested review of this revision.May 30 2024, 8:56 PM
imp created this revision.
olce added a subscriber: olce.

I guess this has to be upstreamed (not familiar with WPA).

This revision is now accepted and ready to land.May 30 2024, 9:05 PM

Is the second ifdef change correct (or needed)? I think both clauses will get ifdef'd out this way if CLOCK_BOOTTIME == CLOCK_MONOTONIC.

olce requested changes to this revision.Fri, May 31, 2:13 PM

Is the second ifdef change correct (or needed)? I think both clauses will get ifdef'd out this way if CLOCK_BOOTTIME == CLOCK_MONOTONIC.

Oh, I think you're right. The original second #ifdef should be kept.

This revision now requires changes to proceed.Fri, May 31, 2:13 PM

Simplify the #ifdefs, even though this is a bit longer than the prior
expressions.

In D45418#1036100, @imp wrote:

Simplify the #ifdefs, even though this is a bit longer than the prior
expressions.

Longer but clearer. Great.

This revision is now accepted and ready to land.Fri, May 31, 2:24 PM