From bf8913e0049c9d0afbb7ccb3307b9b33bf03d16a Mon Sep 17 00:00:00 2001
From: Christophe Fergeau <teuf@gnome.org>
Date: Mon, 13 Dec 2010 23:34:20 +0100
Subject: [PATCH 1/3] fix a few invalid casts/data types

---
 src/activate.c |    2 +-
 src/cache.c    |    6 +++---
 2 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/src/activate.c b/src/activate.c
index 8a8357a..a0d5f50 100755
--- a/src/activate.c
+++ b/src/activate.c
@@ -320,7 +320,7 @@ int do_activation(lockdownd_client_t client, plist_t activation_record)
 
 	// Just my little dump'n'run exercise with the activation record...
 	uint32_t len=0;
-	char **xml=NULL;
+	char *xml=NULL;
 
 	plist_to_xml(activation_record, &xml, &len);
 	printf("ACTIVATION RECORD:\n\n%s\n\n", xml);
diff --git a/src/cache.c b/src/cache.c
index c75c56c..750e20d 100755
--- a/src/cache.c
+++ b/src/cache.c
@@ -99,7 +99,7 @@ int cache_plist(const char *fname, plist_t plist)
 	if (backup_to_cache==1)
 	{
 		uint32_t len=0;
-		char **xml=NULL;
+		char *xml=NULL;
 
 		plist_to_xml(plist, &xml, &len);
 
@@ -116,8 +116,8 @@ char* get_from_cache(const char *what)
 	char fname[512];
 	snprintf(fname, 512, "%s/%s", cachedir, what);
 
-	char *d[BUFSIZE];
-	read_file((const char *)fname, &d);
+	char d[BUFSIZE];
+	read_file((const char *)fname, d);
 
 	return (char *)d;
 }
-- 
1.7.3.3

