]> granicus.if.org Git - file/commitdiff
Make not-equal 0 strength, not the same as =
authorReuben Thomas <rrt@sc3d.org>
Mon, 11 Feb 2008 01:36:08 +0000 (01:36 +0000)
committerReuben Thomas <rrt@sc3d.org>
Mon, 11 Feb 2008 01:36:08 +0000 (01:36 +0000)
src/apprentice.c

index dc147f024114e7c610dda3fe8d43fb165956d609..19c73d022a8e746c697aec5fef87ed236741ff0d 100644 (file)
@@ -47,7 +47,7 @@
 #endif
 
 #ifndef        lint
-FILE_RCSID("@(#)$File: apprentice.c,v 1.113 2008/02/04 20:51:17 christos Exp $")
+FILE_RCSID("@(#)$File: apprentice.c,v 1.114 2008/02/11 01:36:08 rrt Exp $")
 #endif /* lint */
 
 #define        EATAB {while (isascii((unsigned char) *l) && \
@@ -461,10 +461,10 @@ apprentice_magic_strength(const struct magic *m)
 
        switch (m->reln) {
        case 'x':       /* matches anything penalize */
+       case '!':       /* matches almost anything penalize */
                val = 0;
                break;
 
-       case '!':
        case '=':       /* Exact match, prefer */
                val += MULT;
                break;