base: harmonize implementation/headers

heim_retain() should both accept and return a heim_object_t; harmonize this
across header and implementation
This commit is contained in:
Luke Howard
2022-01-08 17:25:36 +11:00
parent a96f87c4ab
commit 2520c30b28
2 changed files with 3 additions and 3 deletions

View File

@@ -83,8 +83,8 @@ struct heim_auto_release {
* @return the same object as passed in
*/
void *
heim_retain(void *ptr)
heim_object_t
heim_retain(heim_object_t ptr)
{
struct heim_base *p = PTR2BASE(ptr);

View File

@@ -168,7 +168,7 @@ typedef long heim_base_once_t; /* XXX arch dependant */
#endif
void * heim_retain(heim_object_t);
heim_object_t heim_retain(heim_object_t);
void heim_release(heim_object_t);
void heim_show(heim_object_t);