]> diplodocus.org Git - nmh/blobdiff - sbr/strindex.c
ext_hook.c: Move interface to own file.
[nmh] / sbr / strindex.c
index 9a1e4fe7b5d999b6ded5b000fb636d3df4f79985..c92da6ee6094208c1698962976f2e73c46433bbd 100644 (file)
@@ -1,13 +1,11 @@
-
-/*
- * strindex.c -- "unsigned" lexical index
+/* 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
  * complete copyright information.
  */
 
-#include <h/mh.h>
+#include "h/mh.h"
 
 int
 stringdex (char *p1, char *p2)
@@ -19,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;
 }