[PATCH] Fix recent fmemopen breakage
Franz Sirl
Franz.Sirl-kernel@lauterbach.com
Sat Sep 2 03:54:00 GMT 2000
Hi,
the last change to fmemopen.c is a bit optimistic, it's not OK to free mem we
didn't allocate, it may be a static buffer. The patch makes the testsuite
happy again.
Also included a small linuxthreads warning fix, it may be the wrong solution
though, cause I find it a bit strange that testandset and __comapare_and_swap
take differing kind of pointers.
Franz.
* libio/fmemopen.c (fmemopen_close): Don't free buffer if we didn't allocate
it.
* linuxthreads/spinlock.h: Warning fix.
More information about the Libc-alpha
mailing list