Skip to content

Commit

Permalink
fix + name improvement
Browse files Browse the repository at this point in the history
  • Loading branch information
vuule committed Mar 25, 2021
1 parent 345887e commit fe20929
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
4 changes: 1 addition & 3 deletions cpp/src/io/utilities/datasource.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -32,9 +32,7 @@ namespace io {
class file_source : public datasource {
public:
explicit file_source(const char *filepath)
: _file(filepath, O_RDONLY),
_file_size{_file.size()},
_cufile_in(detail::make_cufile_input(filepath))
: _file(filepath, O_RDONLY), _cufile_in(detail::make_cufile_input(filepath))
{
}

Expand Down
4 changes: 2 additions & 2 deletions cpp/src/io/utilities/file_io_utilities.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -25,10 +25,10 @@ namespace cudf {
namespace io {
namespace detail {

size_t get_file_size(int fd)
size_t get_file_size(int file_descriptor)
{
struct stat st;
CUDF_EXPECTS(fstat(fd, &st) != -1, "Cannot query file size");
CUDF_EXPECTS(fstat(file_descriptor, &st) != -1, "Cannot query file size");
return static_cast<size_t>(st.st_size);
}

Expand Down

0 comments on commit fe20929

Please sign in to comment.