From: Michael Vrable Date: Wed, 6 Jan 2010 18:20:38 +0000 (-0800) Subject: Silence some compiler warnings. X-Git-Url: https://git.vrable.net/?a=commitdiff_plain;h=ffadf57d27b07d5ba8c0de11649ff08e999f53f4;p=bluesky.git Silence some compiler warnings. --- diff --git a/bluesky/crypto.c b/bluesky/crypto.c index 6981f45..adf7d03 100644 --- a/bluesky/crypto.c +++ b/bluesky/crypto.c @@ -51,7 +51,7 @@ void bluesky_crypt_hash_key(const char *keystr, uint8_t *out) assert(CRYPTO_KEY_SIZE == 16); GChecksum *csum = g_checksum_new(G_CHECKSUM_SHA256); - g_checksum_update(csum, keystr, strlen(keystr)); + g_checksum_update(csum, (const guchar *)keystr, strlen(keystr)); g_checksum_get_digest(csum, raw_csum, &csum_len); g_checksum_free(csum); diff --git a/bluesky/file.c b/bluesky/file.c index ae49d71..09e4805 100644 --- a/bluesky/file.c +++ b/bluesky/file.c @@ -206,7 +206,7 @@ void bluesky_block_flush(BlueSkyFS *fs, BlueSkyBlock *block, BlueSkyRCStr *data = block->data; GChecksum *csum = g_checksum_new(G_CHECKSUM_SHA256); - g_checksum_update(csum, data->data, data->len); + g_checksum_update(csum, (const guchar *)data->data, data->len); gchar *name = g_strdup(g_checksum_get_string(csum)); /* Store the file data asynchronously, and don't bother waiting for a