summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorPixel <pixel@nobis-crew.org>2011-10-26 11:47:38 -0700
committerPixel <pixel@nobis-crew.org>2011-10-26 15:05:29 -0700
commite5804f2cb929083713c0082f39182a858c082587 (patch)
tree7e2e97ace60235b753925197a01ed7d7aa9c16c9 /src
parent8b1e278ef364fff2aa7d6b805353a722db1b4b89 (diff)
Protecting the IO class a bit more, and adding the raw filename paradigm for at least the Input class.
Diffstat (limited to 'src')
-rw-r--r--src/Input.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/Input.cc b/src/Input.cc
index 8f16321..73a2a0a 100644
--- a/src/Input.cc
+++ b/src/Input.cc
@@ -9,7 +9,7 @@
#include "Printer.h"
#ifdef _WIN32
-const char * strerror_r(int errorno, char * buf, size_t bufsize) {
+static const char * strerror_r(int errorno, char * buf, size_t bufsize) {
#ifdef _MSVC
strerror_s(buf, bufsize, errorno);
return buf;
@@ -49,6 +49,7 @@ static int eioStatsDone(eio_req * req) {
Balau::Input::Input(const char * fname) throw (GeneralException) : m_fd(-1), m_size(-1), m_mtime(-1) {
m_name.set("Input(%s)", fname);
+ m_fname = fname;
Printer::elog(E_INPUT, "Opening file %s", fname);