mirror of
https://git.postgresql.org/git/postgresql.git
synced 2024-09-30 22:51:14 +02:00
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.
This commit is contained in:
parent
71877c18a8
commit
2443a26b9b
@ -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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user