Skip to content
Snippets Groups Projects
Commit 7b7a01ae authored by Jannis Pohlmann's avatar Jannis Pohlmann
Browse files

Fix another TDB warning (st.st_size compare to a size_t value).

parent a887ee18
No related branches found
No related tags found
No related merge requests found
......@@ -368,7 +368,7 @@ static int tdb_oob(TDB_CONTEXT *tdb, tdb_off len, int probe)
if (fstat(tdb->fd, &st) == -1)
return TDB_ERRCODE(TDB_ERR_IO, -1);
if (st.st_size < (size_t)len) {
if (st.st_size < (off_t)len) {
if (!probe) {
/* Ensure ecode is set for log fn. */
tdb->ecode = TDB_ERR_IO;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment