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
632a2e08
Commit
632a2e08
authored
May 03, 2021
by
Luke Novey
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Change c-style casts to reinterpret casts
parent
e9635c7b
Changes
2
Show 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 @
632a2e08
...
@@ -144,7 +144,7 @@ public:
...
@@ -144,7 +144,7 @@ public:
// set TCP_NODELAY
// set TCP_NODELAY
int
enable_flag
=
1
;
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.
// Send exactly n_bytes of the given data.
...
...
include/spdlog/details/tcp_client.h
View file @
632a2e08
...
@@ -103,11 +103,11 @@ public:
...
@@ -103,11 +103,11 @@ public:
// set TCP_NODELAY
// set TCP_NODELAY
int
enable_flag
=
1
;
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
// prevent sigpipe on systems where MSG_NOSIGNAL is not available
#if defined(SO_NOSIGPIPE) && !defined(MSG_NOSIGNAL)
#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
#endif
#if !defined(SO_NOSIGPIPE) && !defined(MSG_NOSIGNAL)
#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