Skip to content
Snippets Groups Projects
Commit 2443a26b authored by Heikki Linnakangas's avatar Heikki Linnakangas
Browse files

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
No related branches found
No related tags found
No related merge requests found
......@@ -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);
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment