From e15d0bb8e8d5d6c8c9de8ba80c1756a773dbe445 Mon Sep 17 00:00:00 2001 From: Michael Meskes Date: Thu, 1 Jul 2004 18:32:58 +0000 Subject: [PATCH] Removed unused variable and added a typecast. --- src/interfaces/ecpg/ecpglib/descriptor.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/interfaces/ecpg/ecpglib/descriptor.c b/src/interfaces/ecpg/ecpglib/descriptor.c index 9684e30cc7..f9da2cc4b1 100644 --- a/src/interfaces/ecpg/ecpglib/descriptor.c +++ b/src/interfaces/ecpg/ecpglib/descriptor.c @@ -1,6 +1,6 @@ /* dynamic SQL support routines * - * $PostgreSQL: pgsql/src/interfaces/ecpg/ecpglib/descriptor.c,v 1.8 2004/06/30 15:01:56 meskes Exp $ + * $PostgreSQL: pgsql/src/interfaces/ecpg/ecpglib/descriptor.c,v 1.9 2004/07/01 18:32:58 meskes Exp $ */ #define POSTGRES_ECPG_INTERNAL @@ -435,7 +435,7 @@ ECPGset_desc(int lineno, char *desc_name, int index,...) { va_list args; struct descriptor *desc; - struct descriptor_item *desc_item, *last_di; + struct descriptor_item *desc_item; for (desc = all_descriptors; desc; desc = desc->next) { @@ -457,7 +457,7 @@ ECPGset_desc(int lineno, char *desc_name, int index,...) if (desc_item == NULL) { - desc_item = ECPGalloc(sizeof(*desc_item), lineno); + desc_item = (struct descriptor_item *) ECPGalloc(sizeof(*desc_item), lineno); desc_item->num = index; desc_item->next = desc->items; desc->items = desc_item; -- 2.40.0