diff options
author | Anas Nashif <anas.nashif@intel.com> | 2013-02-22 07:42:24 -0800 |
---|---|---|
committer | Anas Nashif <anas.nashif@intel.com> | 2013-02-22 07:42:24 -0800 |
commit | 19775dd4829f36b0ffd4ca1241cc5c4b95c80eb4 (patch) | |
tree | 2d6c5f13d6717913a2836bbd966c7747d7080256 | |
parent | 13b5470e8e1b7003394e71536b2ee147ff966133 (diff) | |
download | xdelta1-19775dd4829f36b0ffd4ca1241cc5c4b95c80eb4.tar.gz xdelta1-19775dd4829f36b0ffd4ca1241cc5c4b95c80eb4.tar.bz2 xdelta1-19775dd4829f36b0ffd4ca1241cc5c4b95c80eb4.zip |
aliasing
-rwxr-xr-x | libedsio/edsiotest.c | 5 | ||||
-rwxr-xr-x | xdelta.c | 3 |
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)); @@ -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) |