diff options
author | Adam <Adam@anope.org> | 2016-07-25 19:34:59 -0400 |
---|---|---|
committer | Adam <Adam@anope.org> | 2016-07-25 19:34:59 -0400 |
commit | 937b0e7185dca90af67ef516d513885cb362ad15 (patch) | |
tree | ecc0742ad59d0183104137edbdd1131b7797dc8a | |
parent | db4f38bcf5f712dec9f748238cbcdea7f47a95b2 (diff) |
db_old: fix warnings
-rw-r--r-- | modules/database/db_old.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/database/db_old.cpp b/modules/database/db_old.cpp index 00524fdc3..0c65fb95b 100644 --- a/modules/database/db_old.cpp +++ b/modules/database/db_old.cpp @@ -30,7 +30,7 @@ else \ #define getc_db(f) (fgetc((f)->fp)) #define read_db(f, buf, len) (fread((buf), 1, (len), (f)->fp)) -#define read_buffer(buf, f) (read_db((f), (buf), sizeof(buf)) == sizeof(buf)) +#define read_buffer(buf, f) ((read_db((f), (buf), sizeof(buf)) == sizeof(buf)) ? 0 : -1) #define OLD_BI_PRIVATE 0x0001 |