summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnas Nashif <anas.nashif@intel.com>2013-02-22 07:42:24 -0800
committerAnas Nashif <anas.nashif@intel.com>2013-02-22 07:42:24 -0800
commit19775dd4829f36b0ffd4ca1241cc5c4b95c80eb4 (patch)
tree2d6c5f13d6717913a2836bbd966c7747d7080256
parent13b5470e8e1b7003394e71536b2ee147ff966133 (diff)
downloadxdelta1-19775dd4829f36b0ffd4ca1241cc5c4b95c80eb4.tar.gz
xdelta1-19775dd4829f36b0ffd4ca1241cc5c4b95c80eb4.tar.bz2
xdelta1-19775dd4829f36b0ffd4ca1241cc5c4b95c80eb4.zip
aliasing
-rwxr-xr-xlibedsio/edsiotest.c5
-rwxr-xr-xxdelta.c3
2 files changed, 5 insertions, 3 deletions
diff --git a/libedsio/edsiotest.c b/libedsio/edsiotest.c
index 1d30dc0..ee218c1 100755
--- a/libedsio/edsiotest.c
+++ b/libedsio/edsiotest.c
@@ -48,6 +48,7 @@ test2 ()
const char* str = "hello there";
const char* str2;
guint32 str2_len;
+ const char ** str2_ptr = &str2;
PropTest *pt = g_new0 (PropTest, 1);
@@ -63,12 +64,12 @@ test2 ()
g_assert (proptest_isset_bytes (pt, prop));
- g_assert (proptest_get_bytes (pt, prop, (const guint8**) & str2, & str2_len) && str2_len == (strlen (str) + 1) && strcmp (str, str2) == 0);
+ g_assert (proptest_get_bytes (pt, prop, (const guint8**) str2_ptr, & str2_len) && str2_len == (strlen (str) + 1) && strcmp (str, str2) == 0);
/* kill the cache, to test persistence. */
pt->_edsio_property_table = NULL;
- g_assert (proptest_get_bytes (pt, prop, (const guint8**) & str2, & str2_len) && str2_len == (strlen (str) + 1) && strcmp (str, str2) == 0);
+ g_assert (proptest_get_bytes (pt, prop, (const guint8**) str2_ptr, & str2_len) && str2_len == (strlen (str) + 1) && strcmp (str, str2) == 0);
g_assert (proptest_unset_bytes (pt, prop));
diff --git a/xdelta.c b/xdelta.c
index 656038a..d2696a1 100755
--- a/xdelta.c
+++ b/xdelta.c
@@ -1414,6 +1414,7 @@ xdp_control_read (XdeltaStream *cont_in)
{
SerialSource* src = handle_source (cont_in);
XdeltaControl* cont;
+ XdeltaControl** cont_ptr = &cont;
SerialType type;
if (! src)
@@ -1421,7 +1422,7 @@ xdp_control_read (XdeltaStream *cont_in)
/* TODO: free src */
- if (! serializeio_unserialize_generic_acceptable (src, ST_XdeltaControl | ST_Version0Control, & type, (void**) & cont))
+ if (! serializeio_unserialize_generic_acceptable (src, ST_XdeltaControl | ST_Version0Control, & type, (void **) cont_ptr))
return NULL;
if (type == ST_Version0Control)