summaryrefslogtreecommitdiff
path: root/utils/rpctrace.c
diff options
context:
space:
mode:
authorNeal H. Walfield <neal@gnu.org>2002-03-26 19:12:38 +0000
committerNeal H. Walfield <neal@gnu.org>2002-03-26 19:12:38 +0000
commit6207d5e1045d301d4ce6f1bdf437d58dfa269aac (patch)
tree5cddeb6bf78032ec1827d1ba69267e9927b482b2 /utils/rpctrace.c
parent3303f2a113384db1d7cbb785a5acc64bd260afba (diff)
2002-03-23 James A. Morrison <ja2morri@uwaterloo.ca>
* rpctrace.c (parse_msgid_list): Use ERR, not errno. * shd.c (reap): Use error, not perror. (command): Likewise. (main): Likewise. (run): Use error, not perror. Use ERR, not errno.
Diffstat (limited to 'utils/rpctrace.c')
-rw-r--r--utils/rpctrace.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/utils/rpctrace.c b/utils/rpctrace.c
index 1b82f185..e88c1141 100644
--- a/utils/rpctrace.c
+++ b/utils/rpctrace.c
@@ -79,6 +79,7 @@ parse_msgid_list (const char *filename)
unsigned int lineno = 0;
char *name, *subsystem;
unsigned int msgid;
+ error_t err;
fp = fopen (filename, "r");
if (fp == 0)
@@ -103,9 +104,9 @@ parse_msgid_list (const char *filename)
error (1, errno, "malloc");
info->name = name;
info->subsystem = subsystem;
- errno = ihash_add (&msgid_ihash, msgid, info, NULL);
- if (errno)
- error (1, errno, "ihash_add");
+ err = ihash_add (&msgid_ihash, msgid, info, NULL);
+ if (err)
+ error (1, err, "ihash_add");
}
}