mirror of
https://github.com/postgres/postgres.git
synced 2025-07-02 09:02:37 +03:00
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
This commit is contained in:
@ -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++)
|
||||
|
Reference in New Issue
Block a user