aboutsummaryrefslogtreecommitdiffstats
path: root/io.c
diff options
context:
space:
mode:
authorArnold D. Robbins <arnold@skeeve.com>2017-03-25 22:55:06 +0300
committerArnold D. Robbins <arnold@skeeve.com>2017-03-25 22:55:06 +0300
commitd37c160b819d3a828fac6ed037e835158ac23c85 (patch)
tree508f23becb157af1834aab574156d0c39cc5272b /io.c
parentbc97284df48d79d57450aae746c08f8d55d3a57a (diff)
downloadegawk-d37c160b819d3a828fac6ed037e835158ac23c85.tar.gz
egawk-d37c160b819d3a828fac6ed037e835158ac23c85.tar.bz2
egawk-d37c160b819d3a828fac6ed037e835158ac23c85.zip
Small improvement in io.c:flush_io.
Diffstat (limited to 'io.c')
-rw-r--r--io.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/io.c b/io.c
index 00a0ba3c..fa9225ce 100644
--- a/io.c
+++ b/io.c
@@ -1438,7 +1438,7 @@ flush_io()
// now for all open redirections
for (rp = red_head; rp != NULL; rp = rp->next) {
- void (*messagefunc)(const char *mesg, ...) = fatal;
+ void (*messagefunc)(const char *mesg, ...) = r_fatal;
/* flush both files and pipes, what the heck */
if ((rp->flag & RED_WRITE) != 0 && rp->output.fp != NULL) {
@@ -1446,7 +1446,7 @@ flush_io()
update_ERRNO_int(errno);
if (is_non_fatal_redirect(rp->value, strlen(rp->value)))
- messagefunc = warning;
+ messagefunc = r_warning;
if ((rp->flag & RED_PIPE) != 0)
messagefunc(_("pipe flush of `%s' failed (%s)."),