Commit c633166d authored by Pekka Pessi's avatar Pekka Pessi

su/su_alloc.c, su/sofia-sip/su_alloc.h: su_home_ref() takes const pointer.

darcs-hash:20060509144514-65a35-6816c05770d700fa5078d399d91f1f613033cc39.gz
parent d7162216
......@@ -64,7 +64,7 @@ struct su_home_s {
SU_DLL void *su_home_new(int size)
__attribute__((__malloc__));
SU_DLL void *su_home_ref(su_home_t *);
SU_DLL void *su_home_ref(su_home_t const *);
SU_DLL int su_home_unref(su_home_t *);
SU_DLL int su_home_desctructor(su_home_t *, void (*)(void *));
......
......@@ -534,7 +534,7 @@ void *su_home_new(int size)
}
/** Create a new reference to a home object. */
void *su_home_ref(su_home_t *home)
void *su_home_ref(su_home_t const *home)
{
if (home) {
su_block_t *sub = MEMLOCK(home);
......@@ -552,7 +552,7 @@ void *su_home_ref(su_home_t *home)
else
su_seterrno(EFAULT);
return home;
return (void *)home;
}
/** Set destructor function */
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment