aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMichael Meskes <meskes@postgresql.org>2003-09-20 09:10:50 +0000
committerMichael Meskes <meskes@postgresql.org>2003-09-20 09:10:50 +0000
commit3438065eed180d53cdcff6d921e3016653b608bd (patch)
tree84400427051aef8778a16a2bfc44d105608c99f5 /src
parentf604b39c2f2230cfb783bce36dff4407f30be0d0 (diff)
downloadpostgresql-3438065eed180d53cdcff6d921e3016653b608bd.tar.gz
postgresql-3438065eed180d53cdcff6d921e3016653b608bd.zip
- Renamed my own strndup() function because of a name clash.
Diffstat (limited to 'src')
-rw-r--r--src/interfaces/ecpg/compatlib/informix.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/interfaces/ecpg/compatlib/informix.c b/src/interfaces/ecpg/compatlib/informix.c
index 739b83a895c..07b4dbb691e 100644
--- a/src/interfaces/ecpg/compatlib/informix.c
+++ b/src/interfaces/ecpg/compatlib/informix.c
@@ -135,7 +135,7 @@ deccopy(decimal * src, decimal * target)
}
static char *
-strndup(const char *str, size_t len)
+ecpg_strndup(const char *str, size_t len)
{
int real_len = strlen(str);
int use_len = (real_len > len) ? len : real_len;
@@ -156,7 +156,7 @@ strndup(const char *str, size_t len)
int
deccvasc(char *cp, int len, decimal * np)
{
- char *str = strndup(cp, len); /* decimal_in always converts the
+ char *str = ecpg_strndup(cp, len); /* decimal_in always converts the
* complete string */
int ret = 0;
numeric *result;