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

@@ -255,7 +255,7 @@ int pcpvault_writeall(vault_t *vault) {
}
void pcpvault_update_checksum(vault_t *vault) {
byte *checksum = pcpvault_create_checksum(vault);
byte *checksum = pcpvault_create_checksum();
vault_header_t *header = ucmalloc(sizeof(vault_header_t));
header->fileid = PCP_VAULT_ID;
@@ -270,7 +270,7 @@ void pcpvault_update_checksum(vault_t *vault) {
fseek(vault->fd, 0, SEEK_END);
}
byte *pcpvault_create_checksum(vault_t *vault) {
byte *pcpvault_create_checksum() {
int numskeys = pcphash_count();
int numpkeys = pcphash_countpub();