Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
dhtnet
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Deploy
Releases
Model registry
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
savoirfairelinux
dhtnet
Commits
9ed4dd91
Commit
9ed4dd91
authored
1 year ago
by
Adrien Béraud
Browse files
Options
Downloads
Patches
Plain Diff
ip_utils: place sip_strerror in sip_utils
Change-Id: Id67818720dfa107be2f71b7de705a7117d147a74
parent
45dfac93
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/ip_utils.cpp
+2
-1
2 additions, 1 deletion
src/ip_utils.cpp
with
2 additions
and
1 deletion
src/ip_utils.cpp
+
2
−
1
View file @
9ed4dd91
...
...
@@ -49,13 +49,14 @@ WINSOCK_API_LINKAGE INT WSAAPI InetPtonA(INT Family, LPCSTR pStringBuf, PVOID pA
namespace
dhtnet
{
namespace
sip_utils
{
std
::
string_view
sip_strerror
(
pj_status_t
code
)
{
thread_local
char
err_msg
[
PJ_ERR_MSG_SIZE
];
return
sip_utils
::
as_view
(
pj_strerror
(
code
,
err_msg
,
sizeof
err_msg
));
}
}
std
::
string
ip_utils
::
getHostname
()
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment