@@ -12,7 +12,7 @@ static void assert_flush_parses(const char *line)
1212 const char * endptr ;
1313 git_pkt * pkt ;
1414
15- cl_git_pass (git_pkt_parse_line ((git_pkt * * ) & pkt , line , & endptr , linelen ));
15+ cl_git_pass (git_pkt_parse_line ((git_pkt * * ) & pkt , & endptr , line , linelen ));
1616 cl_assert_equal_i (pkt -> type , GIT_PKT_FLUSH );
1717 cl_assert_equal_strn (endptr , line + 4 , linelen - 4 );
1818
@@ -25,7 +25,7 @@ static void assert_data_pkt_parses(const char *line, const char *expected_data,
2525 const char * endptr ;
2626 git_pkt_data * pkt ;
2727
28- cl_git_pass (git_pkt_parse_line ((git_pkt * * ) & pkt , line , & endptr , linelen ));
28+ cl_git_pass (git_pkt_parse_line ((git_pkt * * ) & pkt , & endptr , line , linelen ));
2929 cl_assert_equal_i (pkt -> type , GIT_PKT_DATA );
3030 cl_assert_equal_i (pkt -> len , expected_len );
3131 cl_assert_equal_strn (pkt -> data , expected_data , expected_len );
@@ -39,7 +39,7 @@ static void assert_sideband_progress_parses(const char *line, const char *expect
3939 const char * endptr ;
4040 git_pkt_progress * pkt ;
4141
42- cl_git_pass (git_pkt_parse_line ((git_pkt * * ) & pkt , line , & endptr , linelen ));
42+ cl_git_pass (git_pkt_parse_line ((git_pkt * * ) & pkt , & endptr , line , linelen ));
4343 cl_assert_equal_i (pkt -> type , GIT_PKT_PROGRESS );
4444 cl_assert_equal_i (pkt -> len , expected_len );
4545 cl_assert_equal_strn (pkt -> data , expected_data , expected_len );
@@ -53,7 +53,7 @@ static void assert_error_parses(const char *line, const char *expected_error, si
5353 const char * endptr ;
5454 git_pkt_err * pkt ;
5555
56- cl_git_pass (git_pkt_parse_line ((git_pkt * * ) & pkt , line , & endptr , linelen ));
56+ cl_git_pass (git_pkt_parse_line ((git_pkt * * ) & pkt , & endptr , line , linelen ));
5757 cl_assert_equal_i (pkt -> type , GIT_PKT_ERR );
5858 cl_assert_equal_i (pkt -> len , expected_len );
5959 cl_assert_equal_strn (pkt -> error , expected_error , expected_len );
@@ -70,7 +70,7 @@ static void assert_ack_parses(const char *line, const char *expected_oid, enum g
7070
7171 cl_git_pass (git_oid_fromstr (& oid , expected_oid ));
7272
73- cl_git_pass (git_pkt_parse_line ((git_pkt * * ) & pkt , line , & endptr , linelen ));
73+ cl_git_pass (git_pkt_parse_line ((git_pkt * * ) & pkt , & endptr , line , linelen ));
7474 cl_assert_equal_i (pkt -> type , GIT_PKT_ACK );
7575 cl_assert_equal_oid (& pkt -> oid , & oid );
7676 cl_assert_equal_i (pkt -> status , expected_status );
@@ -84,7 +84,7 @@ static void assert_nak_parses(const char *line)
8484 const char * endptr ;
8585 git_pkt * pkt ;
8686
87- cl_git_pass (git_pkt_parse_line ((git_pkt * * ) & pkt , line , & endptr , linelen ));
87+ cl_git_pass (git_pkt_parse_line ((git_pkt * * ) & pkt , & endptr , line , linelen ));
8888 cl_assert_equal_i (pkt -> type , GIT_PKT_NAK );
8989 cl_assert_equal_strn (endptr , line + 7 , linelen - 7 );
9090
@@ -97,7 +97,7 @@ static void assert_comment_parses(const char *line, const char *expected_comment
9797 const char * endptr ;
9898 git_pkt_comment * pkt ;
9999
100- cl_git_pass (git_pkt_parse_line ((git_pkt * * ) & pkt , line , & endptr , linelen ));
100+ cl_git_pass (git_pkt_parse_line ((git_pkt * * ) & pkt , & endptr , line , linelen ));
101101 cl_assert_equal_i (pkt -> type , GIT_PKT_COMMENT );
102102 cl_assert_equal_strn (pkt -> comment , expected_comment , strlen (expected_comment ));
103103
@@ -110,7 +110,7 @@ static void assert_ok_parses(const char *line, const char *expected_ref)
110110 const char * endptr ;
111111 git_pkt_ok * pkt ;
112112
113- cl_git_pass (git_pkt_parse_line ((git_pkt * * ) & pkt , line , & endptr , linelen ));
113+ cl_git_pass (git_pkt_parse_line ((git_pkt * * ) & pkt , & endptr , line , linelen ));
114114 cl_assert_equal_i (pkt -> type , GIT_PKT_OK );
115115 cl_assert_equal_strn (pkt -> ref , expected_ref , strlen (expected_ref ));
116116
@@ -123,7 +123,7 @@ static void assert_unpack_parses(const char *line, bool ok)
123123 const char * endptr ;
124124 git_pkt_unpack * pkt ;
125125
126- cl_git_pass (git_pkt_parse_line ((git_pkt * * ) & pkt , line , & endptr , linelen ));
126+ cl_git_pass (git_pkt_parse_line ((git_pkt * * ) & pkt , & endptr , line , linelen ));
127127 cl_assert_equal_i (pkt -> type , GIT_PKT_UNPACK );
128128 cl_assert_equal_i (pkt -> unpack_ok , ok );
129129
@@ -136,7 +136,7 @@ static void assert_ng_parses(const char *line, const char *expected_ref, const c
136136 const char * endptr ;
137137 git_pkt_ng * pkt ;
138138
139- cl_git_pass (git_pkt_parse_line ((git_pkt * * ) & pkt , line , & endptr , linelen ));
139+ cl_git_pass (git_pkt_parse_line ((git_pkt * * ) & pkt , & endptr , line , linelen ));
140140 cl_assert_equal_i (pkt -> type , GIT_PKT_NG );
141141 cl_assert_equal_strn (pkt -> ref , expected_ref , strlen (expected_ref ));
142142 cl_assert_equal_strn (pkt -> msg , expected_msg , strlen (expected_msg ));
@@ -156,7 +156,7 @@ static void assert_ref_parses_(const char *line, size_t linelen, const char *exp
156156
157157 cl_git_pass (git_oid_fromstr (& oid , expected_oid ));
158158
159- cl_git_pass (git_pkt_parse_line ((git_pkt * * ) & pkt , line , & endptr , linelen ));
159+ cl_git_pass (git_pkt_parse_line ((git_pkt * * ) & pkt , & endptr , line , linelen ));
160160 cl_assert_equal_i (pkt -> type , GIT_PKT_REF );
161161 cl_assert_equal_oid (& pkt -> head .oid , & oid );
162162 cl_assert_equal_strn (pkt -> head .name , expected_ref , strlen (expected_ref ));
@@ -172,7 +172,7 @@ static void assert_pkt_fails(const char *line)
172172{
173173 const char * endptr ;
174174 git_pkt * pkt ;
175- cl_git_fail (git_pkt_parse_line (& pkt , line , & endptr , strlen (line ) + 1 ));
175+ cl_git_fail (git_pkt_parse_line (& pkt , & endptr , line , strlen (line ) + 1 ));
176176}
177177
178178void test_transports_smart_packet__parsing_garbage_fails (void )
0 commit comments