odict: use int instead of enum to avoid vararg promotion (#81)

This commit is contained in:
Alfred E. Heggestad 2017-09-23 16:44:32 +02:00 committed by Richard Aas
parent 958fd5e132
commit 5253266a68
2 changed files with 2 additions and 2 deletions

View file

@ -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);

View file

@ -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;