Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
spdlog
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Libraries
spdlog
Commits
0f7b95ce
Unverified
Commit
0f7b95ce
authored
May 03, 2021
by
Gabi Melman
Committed by
GitHub
May 03, 2021
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #1924 from lnovey/remove-c-style-casts
Change c-style casts to reinterpret casts in tcp_client
parents
e9635c7b
632a2e08
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
+3
-3
include/spdlog/details/tcp_client-windows.h
include/spdlog/details/tcp_client-windows.h
+1
-1
include/spdlog/details/tcp_client.h
include/spdlog/details/tcp_client.h
+2
-2
No files found.
include/spdlog/details/tcp_client-windows.h
View file @
0f7b95ce
...
...
@@ -144,7 +144,7 @@ public:
// set TCP_NODELAY
int
enable_flag
=
1
;
::
setsockopt
(
socket_
,
IPPROTO_TCP
,
TCP_NODELAY
,
(
char
*
)
&
enable_flag
,
sizeof
(
enable_flag
));
::
setsockopt
(
socket_
,
IPPROTO_TCP
,
TCP_NODELAY
,
reinterpret_cast
<
char
*>
(
&
enable_flag
)
,
sizeof
(
enable_flag
));
}
// Send exactly n_bytes of the given data.
...
...
include/spdlog/details/tcp_client.h
View file @
0f7b95ce
...
...
@@ -103,11 +103,11 @@ public:
// set TCP_NODELAY
int
enable_flag
=
1
;
::
setsockopt
(
socket_
,
IPPROTO_TCP
,
TCP_NODELAY
,
(
char
*
)
&
enable_flag
,
sizeof
(
enable_flag
));
::
setsockopt
(
socket_
,
IPPROTO_TCP
,
TCP_NODELAY
,
reinterpret_cast
<
char
*>
(
&
enable_flag
)
,
sizeof
(
enable_flag
));
// prevent sigpipe on systems where MSG_NOSIGNAL is not available
#if defined(SO_NOSIGPIPE) && !defined(MSG_NOSIGNAL)
::
setsockopt
(
socket_
,
SOL_SOCKET
,
SO_NOSIGPIPE
,
(
char
*
)
&
enable_flag
,
sizeof
(
enable_flag
));
::
setsockopt
(
socket_
,
SOL_SOCKET
,
SO_NOSIGPIPE
,
reinterpret_cast
<
char
*>
(
&
enable_flag
)
,
sizeof
(
enable_flag
));
#endif
#if !defined(SO_NOSIGPIPE) && !defined(MSG_NOSIGNAL)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment