pidgin: 2476e13e: Cast away a few compile warnings in our ...

markdoliner at pidgin.im markdoliner at pidgin.im
Thu Mar 26 03:30:48 EDT 2009


-----------------------------------------------------------------
Revision: 2476e13ecb1702a744a13c42956b29a962a0c7fb
Ancestor: 6572a403c4d945662240548bd49dd8b8a47f6fc8
Author: markdoliner at pidgin.im
Date: 2009-03-26T07:27:05
Branch: im.pidgin.pidgin
URL: http://d.pidgin.im/viewmtn/revision/info/2476e13ecb1702a744a13c42956b29a962a0c7fb

Modified files:
        libpurple/tests/test_util.c po/POTFILES.in

ChangeLog: 

Cast away a few compile warnings in our "make check" tests, and add
libpurple/plugins/one_time_password.c to POTFILES.in so that it can be
translatinated.

-------------- next part --------------
============================================================
--- libpurple/tests/test_util.c	18db94d579754d028231a6b7d4364e656a791579
+++ libpurple/tests/test_util.c	9b590fba5afb2938a06ece0d2a9c69dda0c787b4
@@ -5,7 +5,7 @@ START_TEST(test_util_base16_encode)
 
 START_TEST(test_util_base16_encode)
 {
-	assert_string_equal_free("68656c6c6f2c20776f726c642100", purple_base16_encode("hello, world!", 14));
+	assert_string_equal_free("68656c6c6f2c20776f726c642100", purple_base16_encode((const unsigned char *)"hello, world!", 14));
 }
 END_TEST
 
@@ -14,14 +14,14 @@ START_TEST(test_util_base16_decode)
 	gsize sz = 0;
 	guchar *out = purple_base16_decode("21646c726f77202c6f6c6c656800", &sz);
 	fail_unless(sz == 14, NULL);
-	fail_unless(strcmp("!dlrow ,olleh", out) == 0, NULL);
+	fail_unless(strcmp("!dlrow ,olleh", (const char *)out) == 0, NULL);
 	g_free(out);
 }
 END_TEST
 
 START_TEST(test_util_base64_encode)
 {
-	assert_string_equal_free("Zm9ydHktdHdvAA==", purple_base64_encode("forty-two", 10));
+	assert_string_equal_free("Zm9ydHktdHdvAA==", purple_base64_encode((const unsigned char *)"forty-two", 10));
 }
 END_TEST
 
@@ -30,7 +30,7 @@ START_TEST(test_util_base64_decode)
 	gsize sz;
 	guchar *out = purple_base64_decode("b3d0LXl0cm9mAA==", &sz);
 	fail_unless(sz == 10, NULL);
-	fail_unless(strcmp("owt-ytrof", out) == 0, NULL);
+	fail_unless(strcmp("owt-ytrof", (const char *)out) == 0, NULL);
 	g_free(out);
 }
 END_TEST
============================================================
--- po/POTFILES.in	64716c7ec49d121b424a2f34fbb75f30cf7533a2
+++ po/POTFILES.in	e9128cc8b06698bcdaf23eff4a20eb1b90ad6246
@@ -62,6 +62,7 @@ libpurple/plugins/offlinemsg.c
 libpurple/plugins/mono/loader/mono.c
 libpurple/plugins/newline.c
 libpurple/plugins/offlinemsg.c
+libpurple/plugins/one_time_password.c
 libpurple/plugins/perl/perl.c
 libpurple/plugins/psychic.c
 libpurple/plugins/signals-test.c


More information about the Commits mailing list