diff options
| -rw-r--r-- | src/options.cpp | 6 | ||||
| -rw-r--r-- | src/options.h | 2 |
2 files changed, 4 insertions, 4 deletions
diff --git a/src/options.cpp b/src/options.cpp index ee1d8a2..8ad510c 100644 --- a/src/options.cpp +++ b/src/options.cpp @@ -169,7 +169,7 @@ Parser::parseCreate(int argc, char **argv) /* Convert numbers in the arguments */ if ((arg_buffer_size != NULL) && - parse_unsigned(arg_buffer_size, &(opts.m_buffer_size))) { + parseUnsigned(arg_buffer_size, &(opts.m_buffer_size))) { throw Error("incorrect buffer size"); } else if (opts.m_buffer_size == 0) { throw Error("buffer size cannot be 0"); @@ -231,7 +231,7 @@ Parser::parseRestore(int argc, char **argv) /* Convert numbers in the arguments */ if ((arg_buffer_size != NULL) && - parse_unsigned(arg_buffer_size, &(opts.m_buffer_size))) { + parseUnsigned(arg_buffer_size, &(opts.m_buffer_size))) { throw Error("incorrect buffer size"); } else if (opts.m_buffer_size == 0) { throw Error("buffer size cannot be 0"); @@ -259,7 +259,7 @@ Parser::isOperation(int argc, char **argv, std::string_view operationName) } int -Parser::parse_unsigned(const char *const arg, uint32_t *const value) +Parser::parseUnsigned(const char *const arg, uint32_t *const value) { char *end; diff --git a/src/options.h b/src/options.h index 4aa359a..60c90d7 100644 --- a/src/options.h +++ b/src/options.h @@ -96,7 +96,7 @@ class Parser static bool isOperation(int argc, char **argv, std::string_view operationName); - static int parse_unsigned(const char *const arg, uint32_t *const value); + static int parseUnsigned(const char *const arg, uint32_t *const value); }; } // namespace Options |
