Mercurial > pidgin
diff src/protocols/msn/user.c @ 11164:93663df88ec4
[gaim-migrate @ 13265]
Get rid of the last of the gcc4 warnings in MSN. Rooaarrrrr
committer: Tailor Script <tailor@pidgin.im>
| author | Mark Doliner <mark@kingant.net> |
|---|---|
| date | Fri, 29 Jul 2005 01:38:12 +0000 |
| parents | b256ce6b85b8 |
| children | 8dca96cbcd64 |
line wrap: on
line diff
--- a/src/protocols/msn/user.c Fri Jul 29 01:22:06 2005 +0000 +++ b/src/protocols/msn/user.c Fri Jul 29 01:38:12 2005 +0000 @@ -177,9 +177,9 @@ else if ((fp = g_fopen(filename, "rb")) != NULL) { GaimCipherContext *ctx; - unsigned char *buf; + char *buf; gsize len; - unsigned char *base64; + char *base64; unsigned char digest[20]; if (msnobj == NULL) @@ -204,7 +204,7 @@ memset(digest, 0, sizeof(digest)); ctx = gaim_cipher_context_new_by_name("sha1", NULL); - gaim_cipher_context_append(ctx, buf, st.st_size); + gaim_cipher_context_append(ctx, (const guint8 *)buf, st.st_size); gaim_cipher_context_digest(ctx, sizeof(digest), digest, NULL); g_free(buf); @@ -227,7 +227,7 @@ memset(digest, 0, sizeof(digest)); gaim_cipher_context_reset(ctx, NULL); - gaim_cipher_context_append(ctx, buf, strlen(buf)); + gaim_cipher_context_append(ctx, (const guint8 *)buf, strlen(buf)); gaim_cipher_context_digest(ctx, sizeof(digest), digest, NULL); gaim_cipher_context_destroy(ctx); g_free(buf);
