Skip to content

Commit 047ec60

Browse files
peffgitster
authored andcommitted
pkt-line: move LARGE_PACKET_MAX definition from sideband
Having the packet sizes defined near the packet read/write functions makes more sense. Signed-off-by: Jeff King <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent 819b929 commit 047ec60

File tree

3 files changed

+4
-3
lines changed

3 files changed

+4
-3
lines changed

http.c

+1
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
#include "url.h"
66
#include "credential.h"
77
#include "version.h"
8+
#include "pkt-line.h"
89

910
int active_requests;
1011
int http_is_verbose;

pkt-line.h

+3
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,9 @@ int packet_read(int fd, char *buffer, unsigned size, int options);
5858
*/
5959
int packet_read_line(int fd, char *buffer, unsigned size);
6060

61+
#define DEFAULT_PACKET_MAX 1000
62+
#define LARGE_PACKET_MAX 65520
63+
6164
int packet_get_line(struct strbuf *out, char **src_buf, size_t *src_len);
6265

6366
#endif

sideband.h

-3
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,6 @@
44
#define SIDEBAND_PROTOCOL_ERROR -2
55
#define SIDEBAND_REMOTE_ERROR -1
66

7-
#define DEFAULT_PACKET_MAX 1000
8-
#define LARGE_PACKET_MAX 65520
9-
107
int recv_sideband(const char *me, int in_stream, int out);
118
ssize_t send_sideband(int fd, int band, const char *data, ssize_t sz, int packet_max);
129

0 commit comments

Comments
 (0)