mirror of
https://github.com/postgres/postgres.git
synced 2025-10-22 14:32:25 +03:00
Avoid conflicts with library versions of inet_net_ntop() and friends.
Prefix inet_net_ntop and sibling routines with "pg_" to ensure that they aren't mistaken for C-library functions. This fixes warnings from cpluspluscheck on some platforms, and should help reduce reader confusion everywhere, since our functions aren't exactly interchangeable with the library versions (they may have different ideas about address family codes). This shouldn't be fixing any actual bugs, unless somebody's linker is misbehaving, so no need to back-patch. Discussion: https://postgr.es/m/20518.1559494394@sss.pgh.pa.us
This commit is contained in:
@@ -503,8 +503,8 @@ extern int pg_codepage_to_encoding(UINT cp);
|
||||
#endif
|
||||
|
||||
/* port/inet_net_ntop.c */
|
||||
extern char *inet_net_ntop(int af, const void *src, int bits,
|
||||
char *dst, size_t size);
|
||||
extern char *pg_inet_net_ntop(int af, const void *src, int bits,
|
||||
char *dst, size_t size);
|
||||
|
||||
/* port/pg_strong_random.c */
|
||||
extern bool pg_strong_random(void *buf, size_t len);
|
||||
|
Reference in New Issue
Block a user