Some fixes for getopt_long

This commit is contained in:
px4dev
2012-09-10 00:16:30 -07:00
parent 68d4a26b9e
commit b1767480d2
3 changed files with 17 additions and 14 deletions
+2 -1
View File
@@ -176,7 +176,8 @@ int carrier_get_board_info(struct carrier_board_info_s *info)
int ret;
int fd = open("/dev/eeprom", O_RDONLY | O_NONBLOCK);
if (fd < 0) fprintf(stderr, "[boardinfo carrier] ERROR opening carrier eeprom\n");
if (fd < 0)
return -1; /* no board */
ret = read(fd, info, sizeof(struct carrier_board_info_s));