mirror of
https://github.com/isar/libmdbx.git
synced 2025-01-06 22:34:12 +08:00
mdbx-tools: fix using ENODATA for FreeBSD.
Change-Id: I3092e79116de96aa5e12e61e0963dc7545a1cf1b
This commit is contained in:
parent
9f6a3ea9a2
commit
a159ae4b06
@ -566,7 +566,7 @@ int main(int argc, char *argv[]) {
|
|||||||
rc = readhdr();
|
rc = readhdr();
|
||||||
if (unlikely(rc != MDBX_SUCCESS)) {
|
if (unlikely(rc != MDBX_SUCCESS)) {
|
||||||
if (rc == EOF)
|
if (rc == EOF)
|
||||||
rc = ENODATA;
|
rc = MDBX_ENODATA;
|
||||||
error("readheader", rc);
|
error("readheader", rc);
|
||||||
goto env_close;
|
goto env_close;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user