Make check_usermap() parameter names consistent.
authorPeter Geoghegan <[email protected]>
Sat, 17 Sep 2022 23:54:17 +0000 (16:54 -0700)
committerPeter Geoghegan <[email protected]>
Sat, 17 Sep 2022 23:54:17 +0000 (16:54 -0700)
The function has a bool argument named "case_insensitive", but that was
spelled "case_sensitive" in the declaration.  Make them consistent now
to avoid confusion in the future.

Author: Peter Geoghegan <[email protected]>
Reviewed-By: Michael Paquiër <[email protected]>
Discussion: https://postgr.es/m/CAH2-WznJt9CMM9KJTMjJh_zbL5hD9oX44qdJ4aqZtjFi-zA3Tg@mail.gmail.com
Backpatch: 10-

src/include/libpq/hba.h

index 90036f7bcd3e878232e825e84c9240b32c9c8dcc..d06da8180602471dd16b2b85e8bbe1410c45ce46 100644 (file)
@@ -169,7 +169,7 @@ extern const char *hba_authname(UserAuth auth_method);
 extern void hba_getauthmethod(hbaPort *port);
 extern int     check_usermap(const char *usermap_name,
                                                  const char *pg_role, const char *auth_user,
-                                                 bool case_sensitive);
+                                                 bool case_insensitive);
 extern HbaLine *parse_hba_line(TokenizedAuthLine *tok_line, int elevel);
 extern IdentLine *parse_ident_line(TokenizedAuthLine *tok_line, int elevel);
 extern bool pg_isblank(const char c);