X-Git-Url: http://git.marmaro.de/?p=mmh;a=blobdiff_plain;f=sbr%2Fcontext_replace.c;h=bb49a90ab666474ba48c9778eccbee8fd98aea14;hp=dbe1014aee952af28984e8c549d82a5066440dc3;hb=ced6090a330d3d83d0bce709f756aa3d7d65fea4;hpb=337338b404931f06f0db2119c9e145e8ca5a9860 diff --git a/sbr/context_replace.c b/sbr/context_replace.c index dbe1014..bb49a90 100644 --- a/sbr/context_replace.c +++ b/sbr/context_replace.c @@ -1,10 +1,10 @@ /* - * context_replace.c -- add/replace an entry in the context/profile list - * - * 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. - */ +** context_replace.c -- add/replace an entry in the context/profile list +** +** 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 #include @@ -16,8 +16,8 @@ context_replace (char *key, char *value) register struct node *np; /* - * If list is emtpy, allocate head of profile/context list. - */ + ** If list is emtpy, allocate head of profile/context list. + */ if (!m_defs) { m_defs = (struct node *) mh_xmalloc (sizeof(*np)); @@ -31,9 +31,9 @@ context_replace (char *key, char *value) } /* - * Search list of context/profile entries for - * this key, and replace its value if found. - */ + ** Search list of context/profile entries for + ** this key, and replace its value if found. + */ for (np = m_defs;; np = np->n_next) { if (!mh_strcasecmp (np->n_name, key)) { if (strcmp (value, np->n_field)) { @@ -51,8 +51,8 @@ context_replace (char *key, char *value) } /* - * Else add this new entry at the end - */ + ** Else add this new entry at the end + */ np->n_next = (struct node *) mh_xmalloc (sizeof(*np)); np = np->n_next;