Skip to content
Snippets Groups Projects
Commit 73f47065 authored by Matthias Grob's avatar Matthias Grob Committed by Daniel Agar
Browse files

simulator_mavlink: consistent system call scope operator

parent 6178ead6
No related branches found
No related tags found
No related merge requests found
......@@ -679,8 +679,8 @@ void Simulator::pollForMAVLinkMessages(bool publish)
while (true) {
// Once we receive something, we're most probably good and can carry on.
int len = recvfrom(_fd, _buf, sizeof(_buf), 0,
(struct sockaddr *)&_srcaddr, (socklen_t *)&_addrlen);
int len = ::recvfrom(_fd, _buf, sizeof(_buf), 0,
(struct sockaddr *)&_srcaddr, (socklen_t *)&_addrlen);
if (len > 0) {
break;
......@@ -716,7 +716,7 @@ void Simulator::pollForMAVLinkMessages(bool publish)
break;
} else {
close(_fd);
::close(_fd);
system_sleep(1);
}
}
......@@ -798,8 +798,8 @@ void Simulator::pollForMAVLinkMessages(bool publish)
if (fds[0].revents & POLLIN) {
int len = recvfrom(_fd, _buf, sizeof(_buf), 0,
(struct sockaddr *)&_srcaddr, (socklen_t *)&_addrlen);
int len = ::recvfrom(_fd, _buf, sizeof(_buf), 0,
(struct sockaddr *)&_srcaddr, (socklen_t *)&_addrlen);
if (len > 0) {
mavlink_message_t msg;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment