Remove some gcc extra warnings (signed/unsigned problems etc).

This commit is contained in:
Milan Broz
2012-12-02 22:27:19 +01:00
parent 5aef0809d4
commit a4585423fd
4 changed files with 27 additions and 24 deletions

View File

@@ -425,8 +425,8 @@ out:
static int action_benchmark(void)
{
static struct {
char *cipher;
char *mode;
const char *cipher;
const char *mode;
size_t key_size;
size_t iv_size;
} bciphers[] = {
@@ -444,8 +444,8 @@ static int action_benchmark(void)
{ "twofish", "xts", 64, 16 },
{ NULL, NULL, 0, 0 }
};
char *header = "# Tests are approximate using memory only (no storage IO).\n"
"# Algorithm | Key | Encryption | Decryption\n";
const char *header = "# Tests are approximate using memory only (no storage IO).\n"
"# Algorithm | Key | Encryption | Decryption\n";
char cipher[MAX_CIPHER_LEN], cipher_mode[MAX_CIPHER_LEN];
double enc_mbr = 0, dec_mbr = 0;
int key_size = (opt_key_size ?: DEFAULT_PLAIN_KEYBITS);