X-Git-Url: http://git.marmaro.de/?p=mmh;a=blobdiff_plain;f=sbr%2Fcontext_foil.c;h=5a38030fc5743bbf9f18d06045dbb74d30471a5a;hp=93b198da2f2cddfc1d65be75da95e88aabd6d125;hb=cde17f8d38bf9306df4706ac2acb528a2a686a29;hpb=ced6090a330d3d83d0bce709f756aa3d7d65fea4 diff --git a/sbr/context_foil.c b/sbr/context_foil.c index 93b198d..5a38030 100644 --- a/sbr/context_foil.c +++ b/sbr/context_foil.c @@ -13,9 +13,8 @@ ** Foil search of users .mh_profile ** If error, return -1, else return 0 */ - int -context_foil (char *path) +context_foil(char *path) { register struct node *np; @@ -43,23 +42,23 @@ context_foil (char *path) ** If path is given, create a minimal profile/context list */ if (path) { - m_defs = (struct node *) mh_xmalloc (sizeof(*np)); + m_defs = (struct node *) mh_xmalloc(sizeof(*np)); np = m_defs; - if (!(np->n_name = strdup ("Path"))) { - advise (NULL, "strdup failed"); + if (!(np->n_name = strdup("Path"))) { + advise(NULL, "strdup failed"); return -1; } - if (!(np->n_field = strdup (path))) { - advise (NULL, "strdup failed"); + if (!(np->n_field = strdup(path))) { + advise(NULL, "strdup failed"); return -1; } np->n_context = 0; np->n_next = NULL; - if (mypath == NULL && (mypath = getenv ("HOME")) != NULL) - if (!(mypath = strdup (mypath))) { - advise (NULL, "strdup failed"); + if (mypath == NULL && (mypath = getenv("HOME")) != NULL) + if (!(mypath = strdup(mypath))) { + advise(NULL, "strdup failed"); return -1; } }