Skip to content

Commit 6fc129b

Browse files
thechampagneBurntSushi
authored andcommitted
capi: add missing void
Apparently in C, an empty parameter list means "the function takes an unspecified number of arguments." (lol.) But an explicit void means "the function takes zero arguments." The latter is indeed what we want here. Ref: https://softwareengineering.stackexchange.com/questions/286490/what-is-the-difference-between-function-and-functionvoid Closes #942
1 parent a0d85bf commit 6fc129b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

regex-capi/include/rure.h

+2-2
Original file line numberDiff line numberDiff line change
@@ -408,7 +408,7 @@ size_t rure_captures_len(rure_captures *captures);
408408
* safe to call rure_compile from multiple threads simultaneously using the
409409
* same options pointer.
410410
*/
411-
rure_options *rure_options_new();
411+
rure_options *rure_options_new(void);
412412

413413
/*
414414
* rure_options_free frees the given options.
@@ -536,7 +536,7 @@ size_t rure_set_len(rure_set *re);
536536
* It is not safe to use errors from multiple threads simultaneously. An error
537537
* value may be reused on subsequent calls to rure_compile.
538538
*/
539-
rure_error *rure_error_new();
539+
rure_error *rure_error_new(void);
540540

541541
/*
542542
* rure_error_free frees the error given.

0 commit comments

Comments
 (0)