mirror of
https://github.com/postgres/postgres.git
synced 2025-04-27 22:56:53 +03:00
Minor code cleanup (cast away const-ness)
This commit is contained in:
parent
c74257e9e0
commit
6ead466e10
@ -8,7 +8,7 @@
|
|||||||
*
|
*
|
||||||
*
|
*
|
||||||
* IDENTIFICATION
|
* IDENTIFICATION
|
||||||
* $Header: /cvsroot/pgsql/src/bin/pg_dump/common.c,v 1.46 2000/09/15 04:35:16 pjw Exp $
|
* $Header: /cvsroot/pgsql/src/bin/pg_dump/common.c,v 1.47 2000/09/15 04:57:09 pjw Exp $
|
||||||
*
|
*
|
||||||
* Modifications - 6/12/96 - dave@bensoft.com - version 1.13.dhb.2
|
* Modifications - 6/12/96 - dave@bensoft.com - version 1.13.dhb.2
|
||||||
*
|
*
|
||||||
@ -79,7 +79,7 @@ findTypeByOid(TypeInfo *tinfo, int numTypes, const char *oid, OidOptions opts)
|
|||||||
{
|
{
|
||||||
if (strcmp(tinfo[i].oid, oid) == 0) {
|
if (strcmp(tinfo[i].oid, oid) == 0) {
|
||||||
if ( (opts & useBaseTypeName) != 0 ) {
|
if ( (opts & useBaseTypeName) != 0 ) {
|
||||||
return fmtId(tinfo[i].typname, false);
|
return (char*) fmtId(tinfo[i].typname, false);
|
||||||
} else {
|
} else {
|
||||||
return tinfo[i].typedefn;
|
return tinfo[i].typedefn;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user