Skip to content

Commit

Permalink
Spelling + removing FppConstants include
Browse files Browse the repository at this point in the history
  • Loading branch information
thomas-bc committed Sep 13, 2024
1 parent 3929031 commit 930aa97
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 6 deletions.
5 changes: 3 additions & 2 deletions Os/Directory.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@

#include <FpConfig.hpp>
#include <Os/Os.hpp>
#include <FppConstantsAc.hpp>
#include <Fw/Types/String.hpp>

namespace Os {
Expand All @@ -12,7 +11,9 @@ struct DirectoryHandle {};

class DirectoryInterface {
public:
static constexpr FwSizeType FPP_CONFIG_FILENAME_MAX_SIZE = FppConstant_FileNameStringSize::FileNameStringSize;
// REVIEW NOTE: Where is the best place to retrieve that config from?
static constexpr FwSizeType FPP_CONFIG_FILENAME_MAX_SIZE = 256;

Check notice

Code scanning / CodeQL

Use of basic integral type Note

FPP_CONFIG_FILENAME_MAX_SIZE uses the basic integral type unsigned long rather than a typedef with size and signedness.

typedef enum {
OP_OK, //!< Operation was successful
DOESNT_EXIST, //!< Directory doesn't exist
Expand Down
3 changes: 0 additions & 3 deletions Os/FileSystem.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
#define _OS_FILESYSTEM_HPP_

#include <FpConfig.hpp>
#include <FppConstantsAc.hpp>
#include <Os/Os.hpp>
#include <Os/Directory.hpp>
#include <Os/File.hpp>
Expand All @@ -15,8 +14,6 @@ struct FileSystemHandle {};

class FileSystemInterface {
public:
static constexpr FwSizeType FPP_CONFIG_FILENAME_MAX_SIZE = FppConstant_FileNameStringSize::FileNameStringSize;

typedef enum {
OP_OK, //!< Operation was successful
ALREADY_EXISTS, //!< File already exists
Expand Down
2 changes: 1 addition & 1 deletion Os/Posix/error.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ FileSystem::Status errno_to_filesystem_status(PlatformIntType errno_input) {
case 0:
status = FileSystem::Status::OP_OK;
break;
// All fall throughs are intended to fallback on OTHER_ERROR
// All fall through are intended to fallback on OTHER_ERROR
case EACCES:
status = FileSystem::Status::NO_PERMISSION;
break;
Expand Down

0 comments on commit 930aa97

Please sign in to comment.