lib: stream_hexdump takes const struct

Signed-off-by: Wesley Coakley <wcoakley@cumulusnetworks.com>
This commit is contained in:
Wesley Coakley 2020-05-28 11:18:11 -04:00
parent 9d72660d67
commit f1bc75dac6
2 changed files with 2 additions and 2 deletions

View File

@ -1122,7 +1122,7 @@ int stream_flush(struct stream *s, int fd)
return nbytes;
}
void stream_hexdump(struct stream *s)
void stream_hexdump(const struct stream *s)
{
zlog_hexdump(s->data, s->endp);
}

View File

@ -253,7 +253,7 @@ extern int stream_flush(struct stream *, int);
extern int stream_empty(struct stream *); /* is the stream empty? */
/* debugging */
extern void stream_hexdump(struct stream *);
extern void stream_hexdump(const struct stream *s);
/* deprecated */
extern uint8_t *stream_pnt(struct stream *);