Browse Source

SITL: SIM_Vicon: fix compiler warning

mission-4.1.18
Peter Barker 7 years ago committed by Randy Mackay
parent
commit
994e3e7092
  1. 4
      libraries/SITL/SIM_Vicon.cpp

4
libraries/SITL/SIM_Vicon.cpp

@ -29,7 +29,9 @@ using namespace SITL; @@ -29,7 +29,9 @@ using namespace SITL;
Vicon::Vicon()
{
int tmp[2];
pipe(tmp);
if (pipe(tmp) == -1) {
AP_HAL::panic("pipe() failed");
}
fd_my_end = tmp[1];
fd_their_end = tmp[0];

Loading…
Cancel
Save