iglunix/extra/fish/output_tputs_cast.patch

12 lines
525 B
Diff
Raw Normal View History

2021-01-17 19:15:45 +00:00
--- a/src/output.cpp
+++ b/src/output.cpp
@@ -364,7 +364,7 @@
scoped_push<outputter_t *> push(&s_tputs_receiver, this);
// On some systems, tputs takes a char*, on others a const char*.
// Like tparm, we just cast it to unconst, that should work everywhere.
- return tputs(const_cast<char *>(str), affcnt, tputs_writer);
+ return tputs(const_cast<char *>(str), affcnt, (int (*)(int)) tputs_writer);
}
/// Write a wide character to the outputter. This should only be used when writing characters from