rem: if( strcmp(argv[1], "-v") == 0 ){ if( argc >= 3 ){
add: if (strcmp(argv[1], "-l") == 0 ) { listDirectoryWhich(); return 0; } if (strcmp(argv[1], "-v") == 0 ) { if (argc >= 3) {
context: int main(int argc, char *argv[]){	int directoryArgNr;	int status;	dev_t volume;	directory_which dirType;	int returnCode;		status = NO_ERRORS;	directoryArgNr = 1;	returnCode = 0;	dirType = B_BEOS_DIRECTORY; /* so that it compiles */		/* By default use boot volume*/	volume = dev_for_path( "/boot" );		if( argc <= 1 ){		status = ARGUMENT_MISSING;	} else {		if( strcmp(argv[1], "-v") == 0 ){			if( argc >= 3 ){				dev_t temp_volume;				/* get volume from second arg */				temp_volume = dev_for_path( argv[2] );								/* Keep default value in case of error */				if( temp_volume >= 0 )					volume = temp_volume;								/* two arguments were used for volume */				directoryArgNr+=2;			} else {				/* set status to argument missing */				status = ARGUMENT_MISSING;			}		}	}		if( status == NO_ERRORS && argc > directoryArgNr ){		/* get directory constant from next argument */		if( retrieveDirValue( directoryTypes, argv[directoryArgNr], &dirType ) == false ){			status = WRONG_DIR_TYPE;		}			} else {		status = ARGUMENT_MISSING;	}		/* Do the actual directoy finding */		if( status == NO_ERRORS ){		/* Question: would B_PATH_NAME_LENGTH alone have been enough? */		char buffer[B_PATH_NAME_LENGTH+B_FILE_NAME_LENGTH];		status_t result;				result = find_directory( dirType, volume, /*create it*/ false, buffer, sizeof(buffer) );				if( result == B_OK ){			printf( "%s\n", buffer );		}else{			/* else what? */			/* this can not happen! */			printf("Serious internal error; contact support\n");		}	}	/* Error messages and return code setting */	if( status == WRONG_DIR_TYPE )	{		printf("%s: unrecognized directory_which constant \'%s\'\n", argv[0], argv[directoryArgNr] );		returnCode = 252;	}	if( status == ARGUMENT_MISSING ){		usageMsg();		returnCode = 255;	}		return returnCode;}