On Aug 30, 2010, at 4:52 PM, Dustin J. Mitchell wrote:
>
> #ifndef BROKEN_MEMORY_CCACHE
> - putenv(stralloc("KRB5_ENV_CCNAME=MEMORY:amanda_ccache"));
> + putenv(stralloc(xstr(KRB5_ENV_CCNAME=MEMORY:amanda_ccache));
> #else
> /*
> * MEMORY ccaches seem buggy and cause a lot of internal heap
>
> I don't see the point of doing this - why not just use C's normal
> string-concatenation:
>
> - putenv(stralloc("KRB5_ENV_CCNAME=MEMORY:amanda_ccache"));
> + putenv(stralloc(KRB5_ENV_CCNAME "=MEMORY:amanda_ccache"));
>
Because I'm not a C programmer and I didn't know you could do that. I thought
my choices were between xstr and strcat/strncat. :)
Thanks,
Tim Nowaczyk
--
Timothy Nowaczyk
Network Systems Engineer
University of Virginia - ITC
[email protected]