Skip to content

Commit d02cc45

Browse files
committed
Merge branch 'mt/pkt-line-comment-tweak'
In-code comment clarification. source: <6a14443c101fa132498297af6d7a483520688d75.1658488203.git.matheus.bernardino@usp.br> * mt/pkt-line-comment-tweak: pkt-line.h: move comment closer to the associated code
2 parents acdb1e1 + ce5f079 commit d02cc45

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

pkt-line.h

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -49,14 +49,6 @@ void packet_fflush(FILE *f);
4949
* Read a packetized line into the buffer, which must be at least size bytes
5050
* long. The return value specifies the number of bytes read into the buffer.
5151
*
52-
* If src_buffer and *src_buffer are not NULL, it should point to a buffer
53-
* containing the packet data to parse, of at least *src_len bytes. After the
54-
* function returns, src_buf will be incremented and src_len decremented by the
55-
* number of bytes consumed.
56-
*
57-
* If src_buffer (or *src_buffer) is NULL, then data is read from the
58-
* descriptor "fd".
59-
*
6052
* If options does not contain PACKET_READ_GENTLE_ON_EOF, we will die under any
6153
* of the following conditions:
6254
*
@@ -104,6 +96,14 @@ int packet_length(const char lenbuf_hex[4]);
10496
* returns an 'enum packet_read_status' which indicates the status of the read.
10597
* The number of bytes read will be assigned to *pktlen if the status of the
10698
* read was 'PACKET_READ_NORMAL'.
99+
*
100+
* If src_buffer and *src_buffer are not NULL, it should point to a buffer
101+
* containing the packet data to parse, of at least *src_len bytes. After the
102+
* function returns, src_buf will be incremented and src_len decremented by the
103+
* number of bytes consumed.
104+
*
105+
* If src_buffer (or *src_buffer) is NULL, then data is read from the
106+
* descriptor "fd".
107107
*/
108108
enum packet_read_status {
109109
PACKET_READ_EOF,

0 commit comments

Comments
 (0)