From 68129c12a6c7130491fe81f4d38ec54cb6761397 Mon Sep 17 00:00:00 2001 From: rkhapov Date: Mon, 9 Dec 2024 18:08:57 +0000 Subject: [PATCH] small format fixes Signed-off-by: rkhapov --- sources/debugprintf.c | 2 +- sources/debugprintf.h | 2 +- sources/group.c | 3 +-- 3 files changed, 3 insertions(+), 4 deletions(-) diff --git a/sources/debugprintf.c b/sources/debugprintf.c index fdcedcfce..ee7c64383 100644 --- a/sources/debugprintf.c +++ b/sources/debugprintf.c @@ -2,7 +2,7 @@ #include #include -void od_dbg_printf(char *fmt, ...) +void od_dbg_printf(const char *fmt, ...) { va_list args; va_start(args, fmt); diff --git a/sources/debugprintf.h b/sources/debugprintf.h index 7c25d91b2..77a30dfce 100644 --- a/sources/debugprintf.h +++ b/sources/debugprintf.h @@ -7,7 +7,7 @@ * Scalable PostgreSQL connection pooler. */ -void od_dbg_printf(char *fmt, ...); +void od_dbg_printf(const char *fmt, ...); #define OD_RELEASE_MODE -1 diff --git a/sources/group.c b/sources/group.c index 4e4b2ca7c..c2d8771c2 100644 --- a/sources/group.c +++ b/sources/group.c @@ -71,8 +71,7 @@ int od_group_parse_val_datarow(machine_msg_t *msg, char **group_member) od_group_member_name_item_t *od_group_member_name_item_add(od_list_t *members) { od_group_member_name_item_t *item = - (od_group_member_name_item_t *)malloc( - sizeof(od_group_member_name_item_t)); + malloc(sizeof(od_group_member_name_item_t)); if (item == NULL) return NULL; memset(item, 0, sizeof(*item));