aboutsummaryrefslogtreecommitdiff
path: root/src/bi_io.m4
diff options
context:
space:
mode:
Diffstat (limited to 'src/bi_io.m4')
-rw-r--r--src/bi_io.m416
1 files changed, 8 insertions, 8 deletions
diff --git a/src/bi_io.m4 b/src/bi_io.m4
index 17303a92..40810a08 100644
--- a/src/bi_io.m4
+++ b/src/bi_io.m4
@@ -1,5 +1,5 @@
/* This file is part of mailfromd. -*- c -*-
- Copyright (C) 2006, 2007 Sergey Poznyakoff
+ Copyright (C) 2006, 2007, 2008 Sergey Poznyakoff
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
@@ -226,7 +226,7 @@ MF_DEFUN(open, NUMBER, STRING name)
break;
}
MF_ASSERT(i < NSTREAMS,
- mf_failure,
+ mfe_failure,
_("No more files available"));
debug1(10, "opening stream %s", name);
@@ -256,7 +256,7 @@ MF_DEFUN(open, NUMBER, STRING name)
rc = opf(&iotab[i], name, flags);
MF_ASSERT(rc == 0,
- mf_failure,
+ mfe_failure,
_("Cannot open stream %s: %s"), name,
mu_strerror(rc));
debug2(10, "open(%s) = %d", name, i);
@@ -269,7 +269,7 @@ MF_DEFUN(close, VOID, NUMBER fd)
struct io_stream *iotab = MF_GET_DATA;
MF_ASSERT(fd >= 0 && fd < NSTREAMS,
- mf_range,
+ mfe_range,
_("Invalid file descriptor"));
close_stream(&iotab[fd]);
}
@@ -282,11 +282,11 @@ MF_DEFUN(write, VOID, NUMBER fd, STRING str, OPTIONAL, NUMBER n)
debug2(10, "writing %s to %d", str, fd);
MF_ASSERT(fd >= 0 && fd < NSTREAMS && OFD(iotab[fd]),
- mf_range,
+ mfe_range,
_("Invalid file descriptor"));
rc = write(OFD(iotab[fd]), str, MF_OPTVAL(n, strlen (str)));
MF_ASSERT(n == rc,
- mf_ioerr,
+ mfe_io,
_("Write error on %s: %s"),
iotab[fd].name, mu_strerror(errno));
}
@@ -298,11 +298,11 @@ MF_DEFUN(getline, STRING, NUMBER fd)
int rc;
MF_ASSERT(fd >= 0 && fd < NSTREAMS && IFD(iotab[fd]),
- mf_range,
+ mfe_range,
_("Invalid file descriptor"));
rc = read_stream_line(&iotab[fd]);
MF_ASSERT(rc == 0,
- mf_ioerr,
+ mfe_io,
_("Read error on %s: %s"),
iotab[fd].name, mu_strerror(errno));
MF_RETURN_STRING(iotab[fd].buf);

Return to:

Send suggestions and report system problems to the System administrator.