Phil Sorber <phil(at)omniti(dot)com> writes:
> get_progname() returns a strdup()'d value. Shouldn't it then be simply
> char * and not const char *? Otherwise free() complains loudly without
> a cast.
I don't believe that callers should be trying to free() the result.
Whether it's been strdup'd or not is not any of their business.
regards, tom lane