Fix missing va_end call in uip/mhmisc.c
[mmh] / sbr / context_save.c
index ac0dbfd..0f7061a 100644 (file)
  * because there no longer are setuid/setgid programs in nmh.
  */
 
+#include <sysexits.h>
 #include <h/mh.h>
 #include <h/signals.h>
 
 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);