From a83a43e57be59ed407d98f465d02953af5ae0160 Mon Sep 17 00:00:00 2001 From: Pixel Date: Sat, 8 Dec 2001 13:57:52 +0000 Subject: *hum* some changes... --- lib/Input.cc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'lib/Input.cc') 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; } -- cgit v1.2.3