Loading...
--- Libc/Libc-1725.40.4/stdio/xprintf_comp.c
+++ Libc/Libc-1044.1.2/stdio/xprintf_comp.c
@@ -30,14 +30,11 @@
#include "xprintf_domain.h"
#include "xprintf_private.h"
-#pragma clang diagnostic push
-#pragma clang diagnostic ignored "-Wpointer-bool-conversion"
-
void
free_printf_comp(printf_comp_t pc)
{
if(!pc) return;
- xlocale_release(pc->loc);
+ XL_RELEASE(pc->loc);
#ifdef XPRINTF_PERF
arrayfree(pc->pa);
free(pc->pa);
@@ -71,7 +68,7 @@
pc->fmt = (const char *)(pc + 1);
strcpy((char *)pc->fmt, fmt);
DEFAULT_CURRENT_LOCALE(loc);
- xlocale_retain(loc);
+ XL_RETAIN(loc);
pc->loc = loc;
xprintf_domain_init();
pthread_rwlock_rdlock(&domain->rwlock);
@@ -79,7 +76,7 @@
saverrno = errno;
pthread_rwlock_unlock(&domain->rwlock);
if(ret < 0) {
- xlocale_release(loc);
+ XL_RELEASE(loc);
pthread_mutex_destroy(&pc->mutex);
free(pc);
errno = saverrno;
@@ -87,5 +84,3 @@
}
return pc;
}
-#pragma clang diagnostic pop
-