Skip to content

Commit 8972e81

Browse files
committed
libffi: fix test
#184132 (comment)
1 parent 6c529b9 commit 8972e81

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

Formula/lib/libffi.rb

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -41,10 +41,9 @@ def install
4141
#include <ffi.h>
4242
4343
/* Acts like puts with the file given at time of enclosure. */
44-
void puts_binding(ffi_cif *cif, unsigned int *ret, void* args[],
45-
FILE *stream)
44+
void puts_binding(ffi_cif *cif, void *ret, void** args, void *stream)
4645
{
47-
*ret = fputs(*(char **)args[0], stream);
46+
*(unsigned int *)ret = fputs(*(char **)args[0], (FILE *)stream);
4847
}
4948
5049
int main()

0 commit comments

Comments
 (0)