Skip to content

Commit 0138114

Browse files
committed
smart: make out arguments explicit on recv_pkt
1 parent 08961c9 commit 0138114

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/transports/smart_protocol.c

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -209,7 +209,7 @@ int git_smart__detect_caps(git_pkt_ref *pkt, transport_smart_caps *caps, git_vec
209209
return 0;
210210
}
211211

212-
static int recv_pkt(git_pkt **out, git_pkt_type *pkt_type, gitno_buffer *buf)
212+
static int recv_pkt(git_pkt **out_pkt, git_pkt_type *out_type, gitno_buffer *buf)
213213
{
214214
const char *ptr = buf->data, *line_end = ptr;
215215
git_pkt *pkt = NULL;
@@ -236,10 +236,10 @@ static int recv_pkt(git_pkt **out, git_pkt_type *pkt_type, gitno_buffer *buf)
236236
} while (error);
237237

238238
gitno_consume(buf, line_end);
239-
if (pkt_type)
240-
*pkt_type = pkt->type;
241-
if (out != NULL)
242-
*out = pkt;
239+
if (out_type != NULL)
240+
*out_type = pkt->type;
241+
if (out_pkt != NULL)
242+
*out_pkt = pkt;
243243
else
244244
git__free(pkt);
245245

0 commit comments

Comments
 (0)