odict: use int instead of enum to avoid vararg promotion (#81)
This commit is contained in:
parent
958fd5e132
commit
5253266a68
2 changed files with 2 additions and 2 deletions
|
@ -38,7 +38,7 @@ size_t odict_count(const struct odict *o, bool nested);
|
|||
int odict_debug(struct re_printf *pf, const struct odict *o);
|
||||
|
||||
int odict_entry_add(struct odict *o, const char *key,
|
||||
enum odict_type type, ...);
|
||||
int type, ...);
|
||||
void odict_entry_del(struct odict *o, const char *key);
|
||||
int odict_entry_debug(struct re_printf *pf, const struct odict_entry *e);
|
||||
|
||||
|
|
|
@ -38,7 +38,7 @@ static void destructor(void *arg)
|
|||
|
||||
|
||||
int odict_entry_add(struct odict *o, const char *key,
|
||||
enum odict_type type, ...)
|
||||
int type, ...)
|
||||
{
|
||||
struct odict_entry *e;
|
||||
va_list ap;
|
||||
|
|
Loading…
Add table
Reference in a new issue