- int option_offset = 1;
- char *whitelist_str = argv[args+1];
- if (whitelist_str != NULL) {
- char *saveptr = NULL, *str;
- option_offset = 2;
- for (str = whitelist_str; ; str = NULL) {
- char *token;
- token = strtok_r(str, "," , &saveptr);
- if (token == NULL) break;
- package_whitelist[whitelist_size++] = token;
- }
- }
- for (i=args;i<argc-2+option_offset;i++) argv[i]=argv[i+option_offset];
- argc-=option_offset;
-
- } else if (strcmp(argv[args],"--target")==0) {
- char **dash;
+ int option_offset = 1;
+ char *whitelist_str = argv[args+1];
+ if (whitelist_str != NULL) {
+ char *saveptr = NULL, *str;
+ option_offset = 2;
+ for (str = whitelist_str; ; str = NULL) {
+ char *token;
+ token = strtok_r(str, "," , &saveptr);
+ if (token == NULL) break;
+ package_whitelist[whitelist_size++] = token;
+ }
+ }
+ for (i=args;i<argc-2+option_offset;i++) argv[i]=argv[i+option_offset];
+ argc-=option_offset;