* resolve_op_modifiers * * If the user specifies multiple arguments that conflict with each other, * the last specified argument overrides previous conflicting arguments. ****************************************************************************/
| 211 | * the last specified argument overrides previous conflicting arguments. |
| 212 | ****************************************************************************/ |
| 213 | static void resolve_op_modifiers(void) |
| 214 | { |
| 215 | if (nvramtool_op_modifiers[NVRAMTOOL_MOD_USE_CMOS_LAYOUT_FILE].found && |
| 216 | nvramtool_op_modifiers[NVRAMTOOL_MOD_USE_CMOS_OPT_TABLE].found) { |
| 217 | if (nvramtool_op_modifiers[NVRAMTOOL_MOD_USE_CMOS_LAYOUT_FILE].found_seq > |
| 218 | nvramtool_op_modifiers[NVRAMTOOL_MOD_USE_CMOS_OPT_TABLE].found_seq) |
| 219 | nvramtool_op_modifiers |
| 220 | [NVRAMTOOL_MOD_USE_CMOS_OPT_TABLE].found = FALSE; |
| 221 | else |
| 222 | nvramtool_op_modifiers |
| 223 | [NVRAMTOOL_MOD_USE_CMOS_LAYOUT_FILE].found = FALSE; |
| 224 | } |
| 225 | } |
| 226 | |
| 227 | /**************************************************************************** |
| 228 | * sanity_check_args |
no outgoing calls
no test coverage detected