summaryrefslogtreecommitdiff
path: root/src/port
diff options
context:
space:
mode:
authorHeikki Linnakangas <heikki.linnakangas@iki.fi>2013-03-08 11:21:44 +0200
committerHeikki Linnakangas <heikki.linnakangas@iki.fi>2013-03-08 11:23:33 +0200
commit2443a26b9b905e66cd9b95a2faf57e1f1ebcafb1 (patch)
tree9f2c681d7c322558e285a65f347f95101fc6d6e6 /src/port
parent71877c18a869b858f69e813659ed4bb22b117c4a (diff)
downloadpostgresql-2443a26b9b905e66cd9b95a2faf57e1f1ebcafb1.tar.gz
Remove unnecessary #ifdef FRONTEND check to choose between strdup and pstrdup.
The libpgcommon patch made that unnecessary, palloc and friends are now available in frontend programs too, mapped to plain old malloc. As pointed out by Alvaro Herrera.
Diffstat (limited to 'src/port')
-rw-r--r--src/port/wait_error.c8
1 files changed, 1 insertions, 7 deletions
diff --git a/src/port/wait_error.c b/src/port/wait_error.c
index ac9c52b316..01728d7f76 100644
--- a/src/port/wait_error.c
+++ b/src/port/wait_error.c
@@ -34,7 +34,6 @@ char *
wait_result_to_str(int exitstatus)
{
char str[512];
- char *result;
if (WIFEXITED(exitstatus))
{
@@ -83,10 +82,5 @@ wait_result_to_str(int exitstatus)
_("child process exited with unrecognized status %d"),
exitstatus);
-#ifndef FRONTEND
- result = pstrdup(str);
-#else
- result = strdup(str);
-#endif
- return result;
+ return pstrdup(str);
}