summaryrefslogtreecommitdiff
path: root/src/interfaces/ecpg/lib/ecpglib.c
diff options
context:
space:
mode:
authorBruce Momjian <bruce@momjian.us>1999-03-19 18:56:43 +0000
committerBruce Momjian <bruce@momjian.us>1999-03-19 18:56:43 +0000
commitbd6f98af312d464b0052c244832c5f183cfd9575 (patch)
tree5cf484f58a457ce809efc1745a540e24ebda1f03 /src/interfaces/ecpg/lib/ecpglib.c
parent0d01fd4e19aec4200ce257f0cc9e1bbce7373dae (diff)
I suggest the following portability patch, which does not
change functionality, but makes the code more ANSI C'ish. My AIX xlc compiler barfs on all of these. Can someone please review and apply to current. <<port.patch>> Thanks Andreas
Diffstat (limited to 'src/interfaces/ecpg/lib/ecpglib.c')
-rw-r--r--src/interfaces/ecpg/lib/ecpglib.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/interfaces/ecpg/lib/ecpglib.c b/src/interfaces/ecpg/lib/ecpglib.c
index 8f60b0fc3e0..742cc5a1d8d 100644
--- a/src/interfaces/ecpg/lib/ecpglib.c
+++ b/src/interfaces/ecpg/lib/ecpglib.c
@@ -741,7 +741,9 @@ ECPGexecute(struct statement * stmt)
break;
}
- add_mem((void *)(var->value) = *((void **)(var->pointer)) = (void *) ecpg_alloc(len, stmt->lineno), stmt->lineno);
+ var->pointer = (void *) ecpg_alloc(len, stmt->lineno);
+ var->value = (void **) var->pointer;
+ add_mem((void *) var->value, stmt->lineno);
}
for (act_tuple = 0; act_tuple < ntuples && status; act_tuple++)