mirror of
https://github.com/FAUSheppy/colorredstderr-mirror
synced 2025-12-12 01:48:33 +01:00
Hook __overflow() correctly.
It takes a FILE * and must be hooked with HOOK_FILE*().
This commit is contained in:
@@ -277,7 +277,7 @@ HOOK_FILE1(int, putchar_unlocked, stdout,
|
||||
* stderr (which shouldn't be the case too often). */
|
||||
#ifdef HAVE_STRUCT__IO_FILE__FILENO
|
||||
/* _IO_FILE is glibc's representation of FILE. */
|
||||
HOOK_FD2(int, __overflow, f->_fileno, _IO_FILE *, f, int, ch)
|
||||
HOOK_FILE2(int, __overflow, f, _IO_FILE *, f, int, ch)
|
||||
#endif
|
||||
|
||||
/* perror(3) */
|
||||
|
||||
Reference in New Issue
Block a user