git.postgresql.org Git - postgresql.git/commitdiff

git projects / postgresql.git / commitdiff
? search:
summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: a9169f0)
Fix incorrect use of bool
2017年9月14日 12:30:03 +0000 (08:30 -0400)
Sat, 4 Nov 2017 16:00:58 +0000 (12:00 -0400)
NSUnLinkModule() doesn't take a bool as second argument but one of set
of specific constants. The numeric values are the same in this case,
but clean it up while we're cleaning up bool use elsewhere.

Reviewed-by: Michael Paquier <michael.paquier@gmail.com>

diff --git a/src/backend/port/dynloader/darwin.c b/src/backend/port/dynloader/darwin.c
index f8fdeaf12222a2d974caad97e5108e05ef130cc3..18092cc759b06e000caeeab475903bb1654e9d95 100644 (file)
--- a/src/backend/port/dynloader/darwin.c
+++ b/src/backend/port/dynloader/darwin.c
@@ -69,7 +69,7 @@ pg_dlopen(char *filename)
void
pg_dlclose(void *handle)
{
- NSUnLinkModule(handle, FALSE);
+ NSUnLinkModule(handle, NSUNLINKMODULE_OPTION_NONE);
}
PGFunction
This is the main PostgreSQL git repository.
RSS Atom

AltStyle によって変換されたページ (->オリジナル) /