]> git.puffer.fish Git - matthieu/frr.git/commit
lib: thread history funcname shouldn't be constant, it's freed
authorPaul Jakma <paul@quagga.net>
Mon, 11 Jan 2010 16:30:45 +0000 (16:30 +0000)
committerPaul Jakma <paul@quagga.net>
Wed, 8 Dec 2010 16:53:09 +0000 (16:53 +0000)
commit8526100eebf9c56ff6fac2b80938b232bb687946
tree72b217f80791f29632db0ddefffb97a4943dfb00
parent838bbde0426e562132d22fb11932ea413aebf928
lib: thread history funcname shouldn't be constant, it's freed

* thread.h: (struct cpu_thread_history.funcname) malloc gets called on this
  so it should not be const
* thread.c: (cpu_record_print) cast the (const char *) to (char *), this
  function knows what it's doing (free wont be called on it).
lib/thread.c
lib/thread.h