Skip to content

refactor(os): rename os_get_reltime with edge_ - #417

Merged
aloisklink merged 1 commit into
mainfrom
refactor/rename-os_get_reltime
Feb 17, 2023
Merged

refactor(os): rename os_get_reltime with edge_#417
aloisklink merged 1 commit into
mainfrom
refactor/rename-os_get_reltime

Conversation

@aloisklink

Copy link
Copy Markdown
Contributor

Rename os_get_reltime to edge_os_get_reltime to avoid linking conflicts with the os_get_reltime from libeap.

Use a #define os_get_reltime edge_os_get_reltime instead of renaming the function everywhere in our source code.


Adapted from a873368, which renamed os_get_reltime to get_reltime, and didn't create a macro for os_get_reltime, so it had to be renamed in a bunch of places.

@aloisklink aloisklink added the refactor Refactoring code label Feb 17, 2023
@codecov

codecov Bot commented Feb 17, 2023

Copy link
Copy Markdown

Codecov Report

Merging #417 (90e328f) into main (3139827) will not change coverage.
The diff coverage is 100.00%.

@@           Coverage Diff           @@
##             main     #417   +/-   ##
=======================================
  Coverage   53.08%   53.08%           
=======================================
  Files         144      144           
  Lines       19883    19883           
=======================================
  Hits        10555    10555           
  Misses       9328     9328           
Impacted Files Coverage Δ
src/utils/os.h 100.00% <ø> (ø)
src/utils/os.c 52.52% <100.00%> (ø)

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

@aloisklink
aloisklink enabled auto-merge February 17, 2023 13:44
Rename `os_get_reltime` to `edge_os_get_reltime` to avoid linking
conflicts with the `os_get_reltime` from libeap.

Use a `#define os_get_reltime edge_os_get_reltime`
instead of renaming the function everywhere in our source code.
@aloisklink
aloisklink force-pushed the refactor/rename-os_get_reltime branch from 90e328f to abc4484 Compare February 17, 2023 14:35
@aloisklink
aloisklink added this pull request to the merge queue Feb 17, 2023
Merged via the queue into main with commit 892872a Feb 17, 2023
@aloisklink
aloisklink deleted the refactor/rename-os_get_reltime branch February 17, 2023 15:02
@aloisklink aloisklink mentioned this pull request Feb 17, 2023
@aloisklink aloisklink added this to the RADIUS ERP Server milestone Feb 17, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

refactor Refactoring code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants