From 895beffcb22f9589805a31e4df93f0ffaabf7843 Mon Sep 17 00:00:00 2001 From: Thomas White Date: Mon, 12 Mar 2012 19:26:26 +0100 Subject: compare_hkl: Ignore case of --shells argument --- src/compare_hkl.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/compare_hkl.c b/src/compare_hkl.c index fee30247..5846682f 100644 --- a/src/compare_hkl.c +++ b/src/compare_hkl.c @@ -61,9 +61,9 @@ enum r_shell static enum r_shell get_r_shell(const char *s) { - if ( strcmp(s, "r1i") == 0 ) return R_SHELL_R1I; - if ( strcmp(s, "r1f") == 0 ) return R_SHELL_R1F; - if ( strcmp(s, "rsplit") == 0 ) return R_SHELL_RSPLIT; + if ( strcasecmp(s, "r1i") == 0 ) return R_SHELL_R1I; + if ( strcasecmp(s, "r1f") == 0 ) return R_SHELL_R1F; + if ( strcasecmp(s, "rsplit") == 0 ) return R_SHELL_RSPLIT; ERROR("Unknown R-factor '%s' - try '--shells=rsplit', or --help for" " more possibilities.\n", s); -- cgit v1.2.3