Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
A
arduino-esp32
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Analytics
Analytics
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Commits
Open sidebar
xpstem
arduino-esp32
Commits
3236358d
Unverified
Commit
3236358d
authored
Dec 01, 2020
by
Clemens Kirchgatterer
Committed by
GitHub
Dec 01, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update WiFiClient.cpp (#4573)
Replace (depricated) bzero, bcopy with memset and memcpy.
parent
82e71f9b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
libraries/WiFi/src/WiFiClient.cpp
libraries/WiFi/src/WiFiClient.cpp
+2
-2
No files found.
libraries/WiFi/src/WiFiClient.cpp
View file @
3236358d
...
...
@@ -216,9 +216,9 @@ int WiFiClient::connect(IPAddress ip, uint16_t port, int32_t timeout)
uint32_t
ip_addr
=
ip
;
struct
sockaddr_in
serveraddr
;
bzero
((
char
*
)
&
serveraddr
,
sizeof
(
serveraddr
));
memset
((
char
*
)
&
serveraddr
,
0
,
sizeof
(
serveraddr
));
serveraddr
.
sin_family
=
AF_INET
;
bcopy
((
const
void
*
)(
&
ip_addr
),
(
void
*
)
&
serveraddr
.
sin_addr
.
s_addr
,
4
);
memcpy
((
void
*
)
&
serveraddr
.
sin_addr
.
s_addr
,
(
const
void
*
)(
&
ip_addr
)
,
4
);
serveraddr
.
sin_port
=
htons
(
port
);
fd_set
fdset
;
struct
timeval
tv
;
...
...
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