changeset 5450:bb1e160467b6

[gaim-migrate @ 5838] Thanks to J P (j_pong) for tracking this down, this fixes base16, and might fix the corrupt buddy lists for the win32 folk also there's a cleanup for a compile warning committer: Tailor Script <tailor@pidgin.im>
author Nathan Walp <nwalp@pidgin.im>
date Tue, 20 May 2003 00:45:35 +0000
parents 9442e8d0b21d
children e1cc0c67e123
files src/plugin.c src/util.c
diffstat 2 files changed, 3 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/src/plugin.c	Mon May 19 17:27:03 2003 +0000
+++ b/src/plugin.c	Tue May 20 00:45:35 2003 +0000
@@ -183,7 +183,7 @@
 	plugin = gaim_plugin_new(is_so_file(filename, PLUGIN_EXT), filename);
 
 	if (plugin->native_plugin) {
-		char *error;
+		const char *error;
 		plugin->handle = g_module_open(filename, 0);
 
 		if (plugin->handle == NULL) {
--- a/src/util.c	Mon May 19 17:27:03 2003 +0000
+++ b/src/util.c	Tue May 20 00:45:35 2003 +0000
@@ -470,12 +470,12 @@
 char *tobase16(const char *data, int length)
 {
 	int i;
-	char *ascii = NULL;
+	unsigned char *ascii = NULL;
 
 	if (!data || !length)
 		return NULL;
 
-	ascii = (char *)malloc(length*2 + 1);
+	ascii = malloc(length*2 + 1);
 
 	for (i=0; i<length; i++)
 		snprintf(&ascii[i*2], 3, "%02hhx", data[i]);