added -Wextra -Werror and fixed everything it had to mecker about

This commit is contained in:
TLINDEN
2014-02-25 18:05:32 +01:00
parent 21b0ea38db
commit 8b955b5e92
19 changed files with 36 additions and 81 deletions

View File

@@ -8,6 +8,7 @@ extern "C" {
#include "pcp/config.h"
#include "pcp/base85.h"
#include "pcp/buffer.h"
#include "pcp/config.h"
#include "pcp/crypto.h"
#include "pcp/defines.h"
#include "pcp/digital_crc32.h"

View File

@@ -257,7 +257,7 @@ void ps_armor(Pcpstream *stream, size_t blocksize);
/* read from primary source, decode z85 and out into cache.
if buf != NULL, consider it as the start of encoded data
and remove headers and comments, then continue as normal. */
size_t ps_read_decode(Pcpstream *stream, Buffer *cache, void *buf, size_t bufsize);
size_t ps_read_decode(Pcpstream *stream, void *buf, size_t bufsize);
/* determine if primary source is z85 encoded, put the data
read from it into the cache */

View File

@@ -239,8 +239,8 @@ int pcpvault_copy(vault_t *tmp, vault_t *vault);
/* delete a vault file */
void pcpvault_unlink(vault_t *tmp);
/* calculate the vault checksum */
byte *pcpvault_create_checksum(vault_t *vault);
/* calculate the checksum of the current vault */
byte *pcpvault_create_checksum();
/* write the new checksum to the header of the current vault */
void pcpvault_update_checksum(vault_t *vault);