From 4e172a34adca99d71a22aa4bcaccf0dd6a374400 Mon Sep 17 00:00:00 2001 From: Thomas White Date: Wed, 22 Jan 2014 13:49:48 +0100 Subject: pattern_sim: Make spectrum type case-insensitive --- src/pattern_sim.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/pattern_sim.c b/src/pattern_sim.c index 7be2acfb..d852d986 100644 --- a/src/pattern_sim.c +++ b/src/pattern_sim.c @@ -436,9 +436,9 @@ int main(int argc, char *argv[]) STATUS("You didn't specify a spectrum type, so" " I'm using a 'tophat' spectrum.\n"); spectrum_type = SPECTRUM_TOPHAT; - } else if ( strcmp(spectrum_str, "tophat") == 0) { + } else if ( strcasecmp(spectrum_str, "tophat") == 0) { spectrum_type = SPECTRUM_TOPHAT; - } else if ( strcmp(spectrum_str, "SASE") == 0) { + } else if ( strcasecmp(spectrum_str, "sase") == 0) { spectrum_type = SPECTRUM_SASE; } else { ERROR("Unrecognised spectrum type '%s'\n", spectrum_str); -- cgit v1.2.3