Fixed using myoptarg instead of optarg

This commit is contained in:
bazooka joe
2019-02-21 09:45:45 +01:00
committed by Beat Küng
parent ae335f6bd8
commit 7bac0e03de
4 changed files with 7 additions and 7 deletions
+2 -2
View File
@@ -1947,11 +1947,11 @@ lsm303d_main(int argc, char *argv[])
break;
case 'R':
rotation = (enum Rotation)atoi(optarg);
rotation = (enum Rotation)atoi(myoptarg);
break;
case 'a':
accel_range = atoi(optarg);
accel_range = atoi(myoptarg);
break;
default: