]> diplodocus.org Git - nmh/blobdiff - sbr/context_find.c
folder_realloc.c: Move interface to own file.
[nmh] / sbr / context_find.c
index c6ae2d8c8b14ae1f57faef9e1498049f61a315d0..05e368ba8b256fe206b90e547e79d93c321789f6 100644 (file)
@@ -5,7 +5,8 @@
  * complete copyright information.
  */
 
-#include <h/mh.h>
+#include "h/mh.h"
+#include "context_find.h"
 
 
 char *
@@ -16,7 +17,7 @@ context_find (const char *str)
     str = FENDNULL(str);
     for (np = m_defs; np; np = np->n_next)
        if (!strcasecmp(FENDNULL(np->n_name), str))
-           return (np->n_field);
+           return np->n_field;
 
     return NULL;
 }
@@ -30,7 +31,8 @@ context_find (const char *str)
  */
 char *
 context_find_by_type (const char *string, const char *type,
-                      const char *subtype) {
+                      const char *subtype)
+{
     char *value = NULL;
 
     if (subtype) {
@@ -58,7 +60,8 @@ context_find_by_type (const char *string, const char *type,
  * The search is case insensitive.
  */
 int
-context_find_prefix (const char *prefix) {
+context_find_prefix (const char *prefix)
+{
     struct node *np;
     size_t len;