aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas White <taw@bitwiz.org.uk>2012-03-12 19:26:26 +0100
committerThomas White <taw@bitwiz.org.uk>2012-03-12 19:26:26 +0100
commit895beffcb22f9589805a31e4df93f0ffaabf7843 (patch)
treeff24eb6978a492e381ada62c98834c6ca569e785
parent1fa74b65e5770e4dda34c5c2f8ddc56828adfb3b (diff)
compare_hkl: Ignore case of --shells argument
-rw-r--r--src/compare_hkl.c6
1 files 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);