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