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)
Thu, Nov 7, 1:00 PM
Unknown Object (File)
Thu, Nov 7, 1:00 PM
Unknown Object (File)
Thu, Nov 7, 1:00 PM
Unknown Object (File)
Thu, Nov 7, 1:00 PM
Unknown Object (File)
Tue, Nov 5, 6:44 PM
Unknown Object (File)
Sep 8 2024, 11:10 AM
Unknown Object (File)
Sep 8 2024, 6:18 AM
Unknown Object (File)
Sep 7 2024, 5:45 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.May 31 2024, 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.May 31 2024, 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.May 31 2024, 2:24 PM