diff options
author | Juan Manuel Tomás <jtomas1815@gmail.com> | 2020-08-02 03:50:26 -0300 |
---|---|---|
committer | Juan Manuel Tomás <jtomas1815@gmail.com> | 2020-08-03 23:56:03 -0300 |
commit | 4bbbfb8e8139e690ea084b72ccc2de71fdca1e08 (patch) | |
tree | 0ea15129b752d00f96c6a91e88ec303fd90d7860 /src/common/file.cpp | |
parent | 83ec165fddc5f9ee99a8e2aa75d188c45253a0fa (diff) | |
download | jet-4bbbfb8e8139e690ea084b72ccc2de71fdca1e08.tar.gz jet-4bbbfb8e8139e690ea084b72ccc2de71fdca1e08.zip |
Simplify encoding and decoding
Diffstat (limited to 'src/common/file.cpp')
-rw-r--r-- | src/common/file.cpp | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/common/file.cpp b/src/common/file.cpp index a9d8c2b..626f352 100644 --- a/src/common/file.cpp +++ b/src/common/file.cpp @@ -3,11 +3,9 @@ #include <sys/stat.h> #include <fcntl.h> -class File { +struct File { int descriptor; - public: - File(const char *filepath, int flags) { descriptor = open(filepath, flags); } |