projects
/
mmh
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fix test/tests/show/test-longlines
[mmh]
/
sbr
/
context_save.c
diff --git
a/sbr/context_save.c
b/sbr/context_save.c
index
ac0dbfd
..
0f7061a
100644
(file)
--- a/
sbr/context_save.c
+++ b/
sbr/context_save.c
@@
-12,13
+12,14
@@
* because there no longer are setuid/setgid programs in nmh.
*/
* 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)
{
#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;
FILE *out;
sigset_t set, oset;
@@
-39,7
+40,7
@@
context_save(void)
sigprocmask(SIG_BLOCK, &set, &oset);
if (!(out = lkfopen(ctxpath, "w")))
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);
for (np = m_defs; np; np = np->n_next)
if (np->n_context)
fprintf(out, "%s: %s\n", np->n_name, np->n_field);