Skip to content

Commit

Permalink
CDRIVER-1044: passing an object that undergoes default argument promo…
Browse files Browse the repository at this point in the history
…tion to 'va_start' has undefined behavior
  • Loading branch information
bjori committed Nov 16, 2016
1 parent 2212081 commit d7df5df
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/yajl/yajl.c
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ yajl_alloc(const yajl_callbacks * callbacks,
}

int
yajl_config(yajl_handle h, yajl_option opt, ...)
yajl_config(yajl_handle h, int opt, ...)
{
int rv = 1;
va_list ap;
Expand Down
2 changes: 1 addition & 1 deletion src/yajl/yajl_gen.c
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ struct yajl_gen_t
};

int
yajl_gen_config(yajl_gen g, yajl_gen_option opt, ...)
yajl_gen_config(yajl_gen g, int opt, ...)
{
int rv = 1;
va_list ap;
Expand Down
2 changes: 1 addition & 1 deletion src/yajl/yajl_gen.h
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ extern "C" {
* allocation (via yajl_alloc)
* \returns zero in case of errors, non-zero otherwise
*/
YAJL_API int yajl_gen_config(yajl_gen g, yajl_gen_option opt, ...);
YAJL_API int yajl_gen_config(yajl_gen g, int opt, ...);

/** allocate a generator handle
* \param allocFuncs an optional pointer to a structure which allows
Expand Down
2 changes: 1 addition & 1 deletion src/yajl/yajl_parse.h
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,7 @@ extern "C" {
* allocation (via yajl_alloc)
* \returns zero in case of errors, non-zero otherwise
*/
YAJL_API int yajl_config(yajl_handle h, yajl_option opt, ...);
YAJL_API int yajl_config(yajl_handle h, int opt, ...);

/** free a parser handle */
YAJL_API void yajl_free(yajl_handle handle);
Expand Down

0 comments on commit d7df5df

Please sign in to comment.