aboutsummaryrefslogtreecommitdiff
path: root/src/interfaces/ecpg/compatlib/informix.c
diff options
context:
space:
mode:
authorMichael Meskes <meskes@postgresql.org>2009-09-03 09:59:20 +0000
committerMichael Meskes <meskes@postgresql.org>2009-09-03 09:59:20 +0000
commit2720c57005cf006d9a1a5bf82b0f1ed6e35b3151 (patch)
tree5f264b9c01463c2254d329b8574c55b2ddb1c879 /src/interfaces/ecpg/compatlib/informix.c
parentfe35c8e145e1c970dcae1f7df840762a753f6ee2 (diff)
downloadpostgresql-2720c57005cf006d9a1a5bf82b0f1ed6e35b3151.tar.gz
postgresql-2720c57005cf006d9a1a5bf82b0f1ed6e35b3151.zip
Removed some variables no longer needed.
Diffstat (limited to 'src/interfaces/ecpg/compatlib/informix.c')
-rw-r--r--src/interfaces/ecpg/compatlib/informix.c10
1 files changed, 3 insertions, 7 deletions
diff --git a/src/interfaces/ecpg/compatlib/informix.c b/src/interfaces/ecpg/compatlib/informix.c
index 1d447dbe7cf..41ef2bfcccd 100644
--- a/src/interfaces/ecpg/compatlib/informix.c
+++ b/src/interfaces/ecpg/compatlib/informix.c
@@ -1,4 +1,4 @@
-/* $PostgreSQL: pgsql/src/interfaces/ecpg/compatlib/informix.c,v 1.60 2009/08/14 13:28:22 meskes Exp $ */
+/* $PostgreSQL: pgsql/src/interfaces/ecpg/compatlib/informix.c,v 1.61 2009/09/03 09:59:20 meskes Exp $ */
#define POSTGRES_ECPG_INTERNAL
#include "postgres_fe.h"
@@ -767,13 +767,12 @@ rfmtlong(long lng_val, char *fmt, char *outbuf)
size_t fmt_len = strlen(fmt);
size_t temp_len;
int i,
- j,
+ j, /* position in temp */
k,
dotpos;
int leftalign = 0,
blank = 0,
sign = 0,
- entity = 0,
entitydone = 0,
signdone = 0,
brackets_ok = 0;
@@ -811,7 +810,6 @@ rfmtlong(long lng_val, char *fmt, char *outbuf)
/* start to parse the formatstring */
temp[0] = '\0';
- j = 0; /* position in temp */
k = value.digits - 1; /* position in the value_string */
for (i = fmt_len - 1, j = 0; i >= 0; i--, j++)
{
@@ -819,9 +817,7 @@ rfmtlong(long lng_val, char *fmt, char *outbuf)
if (k < 0)
{
blank = 1;
- if (k == -2)
- entity = 1;
- else if (k == -1)
+ if (k == -1)
sign = 1;
if (leftalign)
{