@matheusbsbs / matheus-bagliano / commits / bb98765769
Fork 0

credential: correct order of parameters for credential_match

Since the beginning in 118250728e (credential: apply helper config, 2011-12-10), the declaration for that function used a different order than the implementation. All callers use the same order than the implementation, so update the declaration in credential.h to match. Reviewed-by: Jeff King <peff@peff.net> Signed-off-by: Carlo Marcelo Arenas Belón <carenas@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>

Carlo Marcelo Arenas Belón committed May 4, 2020 at 18:39 UTC bb987657690b447ae9162ef3a5841d26eb82d806
1 file changed +2 -2
credential.h
+2 -2
@@ -189,7 +189,7 @@ void credential_write(const struct credential *, FILE *);
189 void credential_from_url(struct credential *, const char *url);
190 int credential_from_url_gently(struct credential *, const char *url, int quiet);
191
192 -int credential_match(const struct credential *have,
193 - const struct credential *want);
192 +int credential_match(const struct credential *want,
193 + const struct credential *have);
194
195 #endif /* CREDENTIAL_H */