mdbx-tools: fix using ENODATA for FreeBSD.

Change-Id: I3092e79116de96aa5e12e61e0963dc7545a1cf1b
This commit is contained in:
Leonid Yuriev 2020-05-27 22:56:00 +03:00
parent 9f6a3ea9a2
commit a159ae4b06

View File

@ -566,7 +566,7 @@ int main(int argc, char *argv[]) {
rc = readhdr();
if (unlikely(rc != MDBX_SUCCESS)) {
if (rc == EOF)
rc = ENODATA;
rc = MDBX_ENODATA;
error("readheader", rc);
goto env_close;
}