diff --git a/mdbx.h b/mdbx.h index e2dc6720..4b9fbfb5 100644 --- a/mdbx.h +++ b/mdbx.h @@ -1554,7 +1554,7 @@ MDBX_DEPRECATED static __inline int MDBX_MAP_RESIZED() { * mdbx_strerror_r() - is thread-safe since uses user-supplied buffer where * appropriate. The returned string must NOT be modified * by the application, since it may be pointer to internal - * constatn string. However, there is no restriction if the + * constant string. However, there is no restriction if the * returned string points to the supplied buffer. * * [in] err The error code. diff --git a/src/core.c b/src/core.c index a48ac0a8..7bcb093d 100644 --- a/src/core.c +++ b/src/core.c @@ -10040,12 +10040,12 @@ __cold int mdbx_is_readahead_reasonable(size_t volume, intptr_t redundancy) { #define ENV_USABLE_FLAGS (ENV_CHANGEABLE_FLAGS | ENV_CHANGELESS_FLAGS) #if ENV_INTERNAL_FLAGS & ENV_USABLE_FLAGS -#error "Opps, some flags overlapped or wrong" +#error "Oops, some flags overlapped or wrong" #endif #if (MDBX_ACCEDE | MDBX_CREATE) != ((DB_USABLE_FLAGS | DB_INTERNAL_FLAGS) & \ (ENV_USABLE_FLAGS | ENV_INTERNAL_FLAGS)) -#error "Opps, some flags overlapped or wrong" +#error "Oops, some flags overlapped or wrong" #endif /* Merge flags and avoid false MDBX_UTTERLY_NOSYNC */ diff --git a/src/internals.h b/src/internals.h index ac9fad33..5985d7cb 100644 --- a/src/internals.h +++ b/src/internals.h @@ -197,7 +197,7 @@ extern LIBMDBX_API const char *const mdbx_sourcery_anchor; #define CORE_DBS 2 #define MAX_DBI (INT16_MAX - CORE_DBS) #if MAX_DBI != MDBX_MAX_DBI -#error "Opps, MAX_DBI != MDBX_MAX_DBI" +#error "Oops, MAX_DBI != MDBX_MAX_DBI" #endif /* Number of meta pages - also hardcoded elsewhere */ @@ -740,7 +740,7 @@ struct MDBX_txn { #if (TXN_FLAGS & MDBX_TXN_BEGIN_FLAGS) || \ ((MDBX_TXN_BEGIN_FLAGS | TXN_FLAGS) & MDBX_SHRINK_ALLOWED) -#error "Opps, some flags overlapped or wrong" +#error "Oops, some flags overlapped or wrong" #endif unsigned mt_flags; @@ -1315,10 +1315,10 @@ typedef struct MDBX_node { #define DB_INTERNAL_FLAGS DB_VALID #if DB_INTERNAL_FLAGS & DB_USABLE_FLAGS -#error "Opps, some flags overlapped or wrong" +#error "Oops, some flags overlapped or wrong" #endif #if DB_PERSISTENT_FLAGS & ~DB_USABLE_FLAGS -#error "Opps, some flags overlapped or wrong" +#error "Oops, some flags overlapped or wrong" #endif /* max number of pages to commit in one writev() call */ diff --git a/test/osal-unix.cc b/test/osal-unix.cc index a85ce32a..31e05c06 100644 --- a/test/osal-unix.cc +++ b/test/osal-unix.cc @@ -26,7 +26,7 @@ #include #ifndef MDBX_LOCKING -#error "Opps, MDBX_LOCKING is undefined!" +#error "Oops, MDBX_LOCKING is undefined!" #endif #if defined(__APPLE__) && (MDBX_LOCKING == MDBX_LOCKING_POSIX2001 || \