Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cmake #85

Open
wants to merge 4 commits into
base: master
Choose a base branch
from
Open

Cmake #85

wants to merge 4 commits into from

Conversation

warrenbocphet
Copy link

No description provided.

vitsensei and others added 4 commits August 20, 2022 16:20
In getAddressAsString(), we are comparing ans <=  0 to check for failure. When compiling with g++ 11.2 (Ubuntu 22.02), this gave the following error:

src/arch/linux/net_socket.cpp:170:15: error: ordered comparison of pointer with integer zero (‘const char*’ and ‘int’)

inet_ntop returns a NULL pointer for failure and non-NULL otherwise. So in order to fix this, we can simply compare ans with NULL.
@Marcus-Forte
Copy link

is there interest from Slamtec to merge this? I think is really useful.

@warrenbocphet I believe I can improve so it works for any OS

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants