patch-freehdl_kernel-fhdl-stream_hh 535 B

12345678910111213141516
  1. $OpenBSD: patch-freehdl_kernel-fhdl-stream_hh,v 1.1 2017/06/03 14:25:16 espie Exp $
  2. const correct, avoid non standard code
  3. Index: freehdl/kernel-fhdl-stream.hh
  4. --- freehdl/kernel-fhdl-stream.hh.orig
  5. +++ freehdl/kernel-fhdl-stream.hh
  6. @@ -29,7 +29,7 @@ struct fhdl_ostream_t {
  7. str->flush();
  8. }
  9. - fhdl_ostream_t &operator<<(char *p);
  10. + fhdl_ostream_t &operator<<(const char *p);
  11. fhdl_ostream_t &operator<<(const string &a);
  12. fhdl_ostream_t &operator<<(const int i);
  13. fhdl_ostream_t &operator<<(const unsigned int i);