Add const qualifier for page memory source

master
Yury Kurlykov 2019-10-31 02:56:14 +10:00
parent a2a25826cf
commit 6bfa43da67
2 changed files with 2 additions and 2 deletions

View File

@ -68,7 +68,7 @@ YDB_Error ydb_page_data_read(YDB_TablePage* src, void* dst, YDB_PageSize n);
* *
* @todo Possible error codes. * @todo Possible error codes.
*/ */
YDB_Error ydb_page_data_write(YDB_TablePage* dst, void* src, YDB_PageSize n); YDB_Error ydb_page_data_write(YDB_TablePage* dst, const void* src, YDB_PageSize n);
/** /**
* @brief Get page flags. * @brief Get page flags.

View File

@ -73,7 +73,7 @@ YDB_Error ydb_page_data_read(YDB_TablePage *src, void *dst, YDB_PageSize n) {
return YDB_ERR_SUCCESS; return YDB_ERR_SUCCESS;
} }
YDB_Error ydb_page_data_write(YDB_TablePage *dst, void *src, YDB_PageSize n) { YDB_Error ydb_page_data_write(YDB_TablePage *dst, const void *src, YDB_PageSize n) {
THROW_IF_NULL(src, YDB_ERR_WRITE_TO_NULLPTR); THROW_IF_NULL(src, YDB_ERR_WRITE_TO_NULLPTR);
THROW_IF_NULL(dst, YDB_ERR_PAGE_NOT_INITIALIZED); THROW_IF_NULL(dst, YDB_ERR_PAGE_NOT_INITIALIZED);
THROW_IF_NULL(n, YDB_ERR_ZERO_SIZE_RW); THROW_IF_NULL(n, YDB_ERR_ZERO_SIZE_RW);