Skip to content
Snippets Groups Projects
Commit a89ebcb7 authored by Avi Kivity's avatar Avi Kivity
Browse files

bsd: refine __ntohl() and friends as inline functions


inline functions can be overloaded and are less nasty than macros in other
ways (like evaluating their arguments only once).

Note we can't touch ntohl() itself, since it is defined to be an out-of-line
function by libc.

Signed-off-by: default avatarAvi Kivity <avi@cloudius-systems.com>
parent a2866393
No related branches found
No related tags found
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment