summaryrefslogtreecommitdiff
path: root/lib/Input.cc
diff options
context:
space:
mode:
authorPixel <Pixel>2001-12-08 13:57:52 +0000
committerPixel <Pixel>2001-12-08 13:57:52 +0000
commita83a43e57be59ed407d98f465d02953af5ae0160 (patch)
tree91aa1ea4a24e5b85ef26686828054e858cec21aa /lib/Input.cc
parentc54dfe9b844f6c5d8969669f5144e721e2af82b0 (diff)
*hum* some changes...
Diffstat (limited to 'lib/Input.cc')
-rw-r--r--lib/Input.cc6
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;
}