]> granicus.if.org Git - postgresql/commitdiff
Fix incorrect use of bool
authorPeter Eisentraut <peter_e@gmx.net>
Thu, 14 Sep 2017 12:30:03 +0000 (08:30 -0400)
committerPeter Eisentraut <peter_e@gmx.net>
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>
src/backend/port/dynloader/darwin.c

index f8fdeaf12222a2d974caad97e5108e05ef130cc3..18092cc759b06e000caeeab475903bb1654e9d95 100644 (file)
@@ -69,7 +69,7 @@ pg_dlopen(char *filename)
 void
 pg_dlclose(void *handle)
 {
-       NSUnLinkModule(handle, FALSE);
+       NSUnLinkModule(handle, NSUNLINKMODULE_OPTION_NONE);
 }
 
 PGFunction