mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-08-14 12:41:21 +00:00
2004-10-31 Paul Jakma <paul@dishone.st>
* thread.c: Use XCALLOC and sizeof the type, not the pointer.
This commit is contained in:
parent
70e149e049
commit
039b957769
@ -6,7 +6,8 @@
|
|||||||
* keychain.c: Convert some more strtoul users to VTY_GET_INTEGER.
|
* keychain.c: Convert some more strtoul users to VTY_GET_INTEGER.
|
||||||
* memory.h: Add MTYPE_THREAD_FUNCNAME and MTYPE_THREAD_STATS
|
* memory.h: Add MTYPE_THREAD_FUNCNAME and MTYPE_THREAD_STATS
|
||||||
* thread.c: Update stats and funcname alloc/free to use previous
|
* thread.c: Update stats and funcname alloc/free to use previous
|
||||||
specific memory type defines
|
specific memory type defines. Use XCALLOC and sizeof the type,
|
||||||
|
not the pointer.
|
||||||
* smux.c: fix int to size_t compile warnings
|
* smux.c: fix int to size_t compile warnings
|
||||||
|
|
||||||
2004-10-29 Paul Jakma <paul@dishone.st>
|
2004-10-29 Paul Jakma <paul@dishone.st>
|
||||||
|
@ -104,8 +104,7 @@ static void*
|
|||||||
cpu_record_hash_alloc (struct cpu_thread_history *a)
|
cpu_record_hash_alloc (struct cpu_thread_history *a)
|
||||||
{
|
{
|
||||||
struct cpu_thread_history *new;
|
struct cpu_thread_history *new;
|
||||||
new = XMALLOC( MTYPE_THREAD_STATS, sizeof *new);
|
new = XCALLOC (MTYPE_THREAD_STATS, sizeof (struct cpu_thread_history));
|
||||||
memset(new, 0, sizeof (struct cpu_thread_history));
|
|
||||||
new->func = a->func;
|
new->func = a->func;
|
||||||
new->funcname = XSTRDUP(MTYPE_THREAD_FUNCNAME, a->funcname);
|
new->funcname = XSTRDUP(MTYPE_THREAD_FUNCNAME, a->funcname);
|
||||||
return new;
|
return new;
|
||||||
|
Loading…
Reference in New Issue
Block a user