Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit e15d0bb

Browse files
author
Michael Meskes
committed
Removed unused variable and added a typecast.
1 parent 13629df commit e15d0bb

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/interfaces/ecpg/ecpglib/descriptor.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/* dynamic SQL support routines
22
*
3-
* $PostgreSQL: pgsql/src/interfaces/ecpg/ecpglib/descriptor.c,v 1.8 2004/06/30 15:01:56 meskes Exp $
3+
* $PostgreSQL: pgsql/src/interfaces/ecpg/ecpglib/descriptor.c,v 1.9 2004/07/01 18:32:58 meskes Exp $
44
*/
55

66
#define POSTGRES_ECPG_INTERNAL
@@ -435,7 +435,7 @@ ECPGset_desc(int lineno, char *desc_name, int index,...)
435435
{
436436
va_list args;
437437
struct descriptor *desc;
438-
struct descriptor_item *desc_item, *last_di;
438+
struct descriptor_item *desc_item;
439439

440440
for (desc = all_descriptors; desc; desc = desc->next)
441441
{
@@ -457,7 +457,7 @@ ECPGset_desc(int lineno, char *desc_name, int index,...)
457457

458458
if (desc_item == NULL)
459459
{
460-
desc_item = ECPGalloc(sizeof(*desc_item), lineno);
460+
desc_item = (struct descriptor_item *) ECPGalloc(sizeof(*desc_item), lineno);
461461
desc_item->num = index;
462462
desc_item->next = desc->items;
463463
desc->items = desc_item;

0 commit comments

Comments
 (0)