X-Git-Url: http://git.marmaro.de/?p=mmh;a=blobdiff_plain;f=sbr%2Fcontext_save.c;h=0f7061a51e30b1a6ea88a5a95bb83a6cd58d1f2d;hp=ac0dbfdf55eef6310ae7f52dc89d2640344ac51a;hb=d4bcca1aa235370bc20bc2734c0cd6f700b17871;hpb=24756fd85e33a76ac495073e90a7a56cb7f6103c diff --git a/sbr/context_save.c b/sbr/context_save.c index ac0dbfd..0f7061a 100644 --- a/sbr/context_save.c +++ b/sbr/context_save.c @@ -12,13 +12,14 @@ * because there no longer are setuid/setgid programs in nmh. */ +#include #include #include void context_save(void) { - register struct node *np; + struct node *np; FILE *out; sigset_t set, oset; @@ -39,7 +40,7 @@ context_save(void) sigprocmask(SIG_BLOCK, &set, &oset); if (!(out = lkfopen(ctxpath, "w"))) - adios(ctxpath, "unable to write"); + adios(EX_IOERR, ctxpath, "unable to write"); for (np = m_defs; np; np = np->n_next) if (np->n_context) fprintf(out, "%s: %s\n", np->n_name, np->n_field);