diff options
author | Adam <Adam@anope.org> | 2016-10-07 19:09:18 -0400 |
---|---|---|
committer | Adam <Adam@anope.org> | 2016-10-07 19:09:18 -0400 |
commit | 52ed000b3239549262bdb870ed4b41ccbd2ff652 (patch) | |
tree | 963b9889833041322e3cffdc3b900824d6d75c85 /modules/database/old.cpp | |
parent | 512dd86eb2c9057c4362b8d0fb61d5b61eeb5fa3 (diff) |
db_old: fix warnings
Diffstat (limited to 'modules/database/old.cpp')
-rw-r--r-- | modules/database/old.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/database/old.cpp b/modules/database/old.cpp index 640b45973..1a00b5c17 100644 --- a/modules/database/old.cpp +++ b/modules/database/old.cpp @@ -43,7 +43,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 |