diff options
author | Francois Perrad <francois.perrad@gadz.org> | 2017-08-19 22:39:53 +0200 |
---|---|---|
committer | Francois Perrad <francois.perrad@gadz.org> | 2017-08-19 22:39:53 +0200 |
commit | 598056d1686127285c389cacbdd20707c350d05a (patch) | |
tree | d821ca44d56c707bd3e6fe35f5cb58ff6eb1ccda /channel.h | |
parent | 89e64c631ec8dee41ec4de888548d36887b6ec98 (diff) |
Pointer parameter could be declared as pointing to const (callback)
Diffstat (limited to 'channel.h')
-rw-r--r-- | channel.h | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -84,7 +84,7 @@ struct Channel { int flushing; /* Used by client chansession to handle ~ escaping, NULL ignored otherwise */ - void (*read_mangler)(struct Channel*, unsigned char* bytes, int *len); + void (*read_mangler)(const struct Channel*, const unsigned char* bytes, int *len); const struct ChanType* type; @@ -98,7 +98,7 @@ struct ChanType { int (*inithandler)(struct Channel*); int (*check_close)(struct Channel*); void (*reqhandler)(struct Channel*); - void (*closehandler)(struct Channel*); + void (*closehandler)(const struct Channel*); }; /* Callback for connect_remote */ |