Implicit Declaration of function?

Poul-Henning Kamp phk at phk.freebsd.dk
Sun Dec 15 10:48:14 CET 2013


In message <CAChvjRD-K652MUp2rCm0Kt1J-ggKxQ=RuNeyeBw5rbeXYszA4w at mail.gmail.com>
, Jason Price writes:

>1) Do I need to free any of my temp variables here?  Or does varnish clean
>them up for me?  (in my case t, digestepoch, digestdate, and tm)

Only if you allocate the memory from malloc() or similar.

As far as I can see, all your variables are local to your function
so they live on the stack so they are automatically destroyed.

>2) seriously: WTF with _XOpenSource needing to be set to use strptime??

Ask whoever writes your OS.

-- 
Poul-Henning Kamp       | UNIX since Zilog Zeus 3.20
phk at FreeBSD.ORG         | TCP/IP since RFC 956
FreeBSD committer       | BSD since 4.3-tahoe    
Never attribute to malice what can adequately be explained by incompetence.



More information about the varnish-misc mailing list