]> git.puffer.fish Git - mirror/frr.git/commitdiff
lib: stream_hexdump takes const struct 6476/head
authorWesley Coakley <wcoakley@cumulusnetworks.com>
Thu, 28 May 2020 15:18:11 +0000 (11:18 -0400)
committerWesley Coakley <wcoakley@cumulusnetworks.com>
Thu, 28 May 2020 15:18:11 +0000 (11:18 -0400)
Signed-off-by: Wesley Coakley <wcoakley@cumulusnetworks.com>
lib/stream.c
lib/stream.h

index b378ab62a5094e017a91fd9f0bb194d0b65bdd53..fcfbc78e3d95a5d9ee50e4f53fc468b4ad3291ad 100644 (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);
 }
index f84f028852a21a994670ebc4355860bb026ac375..23d83bf9308f5d31080ee7b0769288e646d9c228 100644 (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 *);