Skip to content

Commit e488603

Browse files
committed
pkt-line: fix declaration of set_packet_header()
When this function was changed in a97d007 (remote-curl: use post_rpc() for protocol v2 also, 2019-02-21) from file-local to global, the declaration was incorrectly missing the `const` qualifier. Let's fix that. Signed-off-by: Johannes Schindelin <[email protected]>
1 parent 5818860 commit e488603

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pkt-line.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ void packet_delim(int fd);
2525
void packet_write_fmt(int fd, const char *fmt, ...) __attribute__((format (printf, 2, 3)));
2626
void packet_buf_flush(struct strbuf *buf);
2727
void packet_buf_delim(struct strbuf *buf);
28-
void set_packet_header(char *buf, int size);
28+
void set_packet_header(char *buf, const int size);
2929
void packet_write(int fd_out, const char *buf, size_t size);
3030
void packet_buf_write(struct strbuf *buf, const char *fmt, ...) __attribute__((format (printf, 2, 3)));
3131
void packet_buf_write_len(struct strbuf *buf, const char *data, size_t len);

0 commit comments

Comments
 (0)