Commit 2443a26b authored by Heikki Linnakangas's avatar Heikki Linnakangas

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.
parent 71877c18
...@@ -34,7 +34,6 @@ char * ...@@ -34,7 +34,6 @@ char *
wait_result_to_str(int exitstatus) wait_result_to_str(int exitstatus)
{ {
char str[512]; char str[512];
char *result;
if (WIFEXITED(exitstatus)) if (WIFEXITED(exitstatus))
{ {
...@@ -83,10 +82,5 @@ wait_result_to_str(int exitstatus) ...@@ -83,10 +82,5 @@ wait_result_to_str(int exitstatus)
_("child process exited with unrecognized status %d"), _("child process exited with unrecognized status %d"),
exitstatus); exitstatus);
#ifndef FRONTEND return pstrdup(str);
result = pstrdup(str);
#else
result = strdup(str);
#endif
return result;
} }
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment