Skip to content

Commit

Permalink
Merge pull request #184380 from Homebrew/libffi-test
Browse files Browse the repository at this point in the history
libffi: fix test
  • Loading branch information
carlocab authored Sep 10, 2024
2 parents 2de5791 + 8972e81 commit 6abb971
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions Formula/lib/libffi.rb
Original file line number Diff line number Diff line change
Expand Up @@ -41,10 +41,9 @@ def install
#include <ffi.h>
/* Acts like puts with the file given at time of enclosure. */
void puts_binding(ffi_cif *cif, unsigned int *ret, void* args[],
FILE *stream)
void puts_binding(ffi_cif *cif, void *ret, void** args, void *stream)
{
*ret = fputs(*(char **)args[0], stream);
*(unsigned int *)ret = fputs(*(char **)args[0], (FILE *)stream);
}
int main()
Expand Down

0 comments on commit 6abb971

Please sign in to comment.