#include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h>
-#include <arch/arch.h>
+#include <parlib/arch/arch.h>
#include <unistd.h>
#include <errno.h>
#include <dirent.h>
int flag = 0;
/* crap arg handling for now. */
argc--,argv++;
- if (argc > 2){
+ while (argc > 2){
switch(argv[0][1]){
- case 'b': flag = 1;
+ case 'b': flag |= 1;
break;
- case 'a': flag = 2;
+ case 'a': flag |= 2;
break;
- case 'c': flag = 4;
+ case 'c': flag |= 4;
break;
default:
printf("-a or -b and/or -c for now\n");