Commit e15d0bb8 authored by Michael Meskes's avatar Michael Meskes

Removed unused variable and added a typecast.

parent 13629df5
/* dynamic SQL support routines /* 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 #define POSTGRES_ECPG_INTERNAL
...@@ -435,7 +435,7 @@ ECPGset_desc(int lineno, char *desc_name, int index,...) ...@@ -435,7 +435,7 @@ ECPGset_desc(int lineno, char *desc_name, int index,...)
{ {
va_list args; va_list args;
struct descriptor *desc; struct descriptor *desc;
struct descriptor_item *desc_item, *last_di; struct descriptor_item *desc_item;
for (desc = all_descriptors; desc; desc = desc->next) for (desc = all_descriptors; desc; desc = desc->next)
{ {
...@@ -457,7 +457,7 @@ ECPGset_desc(int lineno, char *desc_name, int index,...) ...@@ -457,7 +457,7 @@ ECPGset_desc(int lineno, char *desc_name, int index,...)
if (desc_item == NULL) 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->num = index;
desc_item->next = desc->items; desc_item->next = desc->items;
desc->items = desc_item; desc->items = desc_item;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment