]> diplodocus.org Git - nmh/blobdiff - sbr/strindex.c
Invert ternary condition to remove one negative.
[nmh] / sbr / strindex.c
index 51cbe7c61cbe731fbec63fec45fa0a591b108359..b2bc9ff9f83ff1f0a9cc923754a454adeda2412f 100644 (file)
@@ -1,8 +1,4 @@
-
-/*
- * strindex.c -- "unsigned" lexical index
- *
- * $Id$
+/* strindex.c -- "unsigned" lexical index
  *
  * This code is Copyright (c) 2002, by the authors of nmh.  See the
  * COPYRIGHT file in the root directory of the nmh distribution for
@@ -21,7 +17,7 @@ stringdex (char *p1, char *p2)
 
     for (p = p2; *p; p++)
        if (uprf (p, p1))
-           return (p - p2);
+           return p - p2;
 
     return -1;
 }