Skip to content

refactor(os): inline hex2byte and remove from os.h - #415

Merged
aloisklink merged 1 commit into
mainfrom
refactor/inline-hex2byte
Feb 17, 2023
Merged

refactor(os): inline hex2byte and remove from os.h#415
aloisklink merged 1 commit into
mainfrom
refactor/inline-hex2byte

Conversation

@aloisklink

Copy link
Copy Markdown
Contributor

Inline the hex2byte function, and remove it from src/utils/os.h

We never call it outside of this file, but it may cause linking errors with libeap.


Adapted from b273cce

The main difference is that instead of renaming the function, if we just inline it, this avoids linker issues (there were also some merge conflicts to fix).

@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 #415 (06dba6c) into main (8446ddd) will not change coverage.
The diff coverage is 100.00%.

❗ Current head 06dba6c differs from pull request most recent head c7e7777. Consider uploading reports for the commit c7e7777 to get more accurate results

@@           Coverage Diff           @@
##             main     #415   +/-   ##
=======================================
  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%> (ø)
src/utils/allocs.h 80.00% <0.00%> (-3.34%) ⬇️
src/utils/allocs.c 64.70% <0.00%> (+2.20%) ⬆️

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
Inline the hex2byte function, and remove it from src/utils/os.h

We never call it outside of this function, but it may cause linking
errors with libeap.

Co-authored-by: Alois Klink <alois@nquiringminds.com>
@aloisklink
aloisklink force-pushed the refactor/inline-hex2byte branch from 06dba6c to c7e7777 Compare February 17, 2023 14:34
@aloisklink
aloisklink added this pull request to the merge queue Feb 17, 2023
Merged via the queue into main with commit 7b9a0ab Feb 17, 2023
@aloisklink
aloisklink deleted the refactor/inline-hex2byte branch February 17, 2023 14:57
@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