Mercurial > trustbridge
diff common/listutil.c @ 181:bea93c8651b7
Merged
author | Sascha Wilde <wilde@intevation.de> |
---|---|
date | Tue, 25 Mar 2014 17:56:56 +0100 |
parents | b0579d4fa186 |
children | 881ce5126f07 |
line wrap: on
line diff
--- a/common/listutil.c Tue Mar 25 17:51:24 2014 +0100 +++ b/common/listutil.c Tue Mar 25 17:56:56 2014 +0100 @@ -22,7 +22,7 @@ #include <polarssl/sha256.h> #pragma GCC diagnostic pop -#define MAX_FILESIZE MAX_LINE_LENGTH * MAX_LINES +#define MAX_FILESIZE (MAX_LINE_LENGTH * MAX_LINES) /** * @brief Read a file into memory. @@ -192,6 +192,8 @@ } if (ret == READ_FILE_UNREADABLE) { /* TODO: work with errno ? */ + /* errsv = errno; */ + /* perror("read_and_verify_list(), READ_FILE_UNREADABLE:"); */ return SeekFailed; } if (ret == READ_FILE_READ_FAILED) {