Browse Source

commander: Linting: Reduce scope of variable

sbg
Lorenz Meier 11 years ago
parent
commit
8383603f76
  1. 3
      src/modules/commander/state_machine_helper.cpp

3
src/modules/commander/state_machine_helper.cpp

@ -337,10 +337,11 @@ int hil_state_transition(hil_state_t new_state, int status_pub, struct vehicle_s @@ -337,10 +337,11 @@ int hil_state_transition(hil_state_t new_state, int status_pub, struct vehicle_s
/* list directory */
DIR *d;
struct dirent *direntry;
d = opendir("/dev");
if (d) {
struct dirent *direntry;
while ((direntry = readdir(d)) != NULL) {
int sensfd = ::open(direntry->d_name, 0);

Loading…
Cancel
Save