MT#55283 signed refcount for consistency

Change-Id: I56008b19b60988127634c70e8703297f6059b93c
master
Richard Fuchs 2 days ago
parent 00cc8f5703
commit 900dfd5f86

@ -884,7 +884,7 @@ static struct rtpengine_table *new_table(void) {
static inline void __ref_get(void *p, atomic_t *refcnt) {
DBG("ref_get(%p) - refcnt is %u\n", p, atomic_read(refcnt));
DBG("ref_get(%p) - refcnt is %d\n", p, atomic_read(refcnt));
atomic_inc(refcnt);
}
#define ref_get(o) __ref_get(o, &(o)->refcnt)

@ -39,7 +39,7 @@ struct obj {
uint32_t magic;
char *type;
#endif
unsigned int ref;
int ref;
void (*clear_func)(void *);
void (*free_func)(void *);
};

Loading…
Cancel
Save