* 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;
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);