]> diplodocus.org Git - nmh/blobdiff - sbr/strindex.c
fmt_rfc2047.c: Move interface to own file.
[nmh] / sbr / strindex.c
index 51cbe7c61cbe731fbec63fec45fa0a591b108359..8eaf6c22883c81d0598c916a43affd65d74e3b59 100644 (file)
@@ -1,15 +1,12 @@
-
-/*
- * 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"
+#include "uprf.h"
 
 int
 stringdex (char *p1, char *p2)
@@ -21,7 +18,7 @@ stringdex (char *p1, char *p2)
 
     for (p = p2; *p; p++)
        if (uprf (p, p1))
-           return (p - p2);
+           return p - p2;
 
     return -1;
 }