Suggested-by: Chris Wilson <chris@chris-wilson.co.uk>
Signed-off-by: Eric Engestrom <eric.engestrom@intel.com>
Reviewed-by: Jordan Justen <jordan.l.justen@intel.com>
Reviewed-by: Christian Gmeiner <christian.gmeiner@gmail.com>
if (strcmp(str, "1") == 0 ||
strcasecmp(str, "true") == 0 ||
+ strcasecmp(str, "y") == 0 ||
strcasecmp(str, "yes") == 0) {
return true;
} else if (strcmp(str, "0") == 0 ||
strcasecmp(str, "false") == 0 ||
+ strcasecmp(str, "n") == 0 ||
strcasecmp(str, "no") == 0) {
return false;
} else {