diff options
author | Pixel <Pixel> | 2001-12-08 13:57:52 +0000 |
---|---|---|
committer | Pixel <Pixel> | 2001-12-08 13:57:52 +0000 |
commit | a83a43e57be59ed407d98f465d02953af5ae0160 (patch) | |
tree | 91aa1ea4a24e5b85ef26686828054e858cec21aa /lib/Input.cc | |
parent | c54dfe9b844f6c5d8969669f5144e721e2af82b0 (diff) |
*hum* some changes...
Diffstat (limited to 'lib/Input.cc')
-rw-r--r-- | lib/Input.cc | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/Input.cc b/lib/Input.cc index be6981f..318821d 100644 --- a/lib/Input.cc +++ b/lib/Input.cc @@ -10,10 +10,10 @@ #include "config.h" Input::Input(String no) throw (GeneralException) : - Handle(no.strlen() ? open(no.to_charp(), O_RDONLY) : 0), + Handle(no.strlen() ? open(no.to_charp(), O_RDONLY) : dup(0)), n(no) { if (GetHandle() < 0) { - throw IOGeneral(String(_("Error opening file")) + no + _(" for reading: ") + strerror(errno)); + throw IOGeneral(String(_("Error opening file ")) + no + _(" for reading: ") + strerror(errno)); } size = lseek(GetHandle(), 0, SEEK_END); @@ -38,7 +38,7 @@ String Input::GetName() { return n; } -off_t Input::GetSize() { +ssize_t Input::GetSize() { return size; } |