Skip to content

Commit

Permalink
Make sure shm_hash_usage matches prototype.
Browse files Browse the repository at this point in the history
  • Loading branch information
sobomax committed Feb 28, 2023
1 parent 0309b83 commit 7f2bf4f
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 4 deletions.
3 changes: 1 addition & 2 deletions mem/hp_malloc.c
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@
#include "../globals.h"
#include "../statistics.h"
#include "../locking.h"
#include "../mem/shm_mem.h"

#include "hp_malloc.h"

Expand Down Expand Up @@ -102,8 +103,6 @@ static unsigned int optimized_put_indexes[HP_HASH_SIZE];
}) : \
HP_LINEAR_HASH_SIZE + big_hash_idx((s)) - HP_MALLOC_OPTIMIZE_FACTOR + 1)

extern unsigned long *shm_hash_usage;

/*
* adaptive image of OpenSIPS's memory usage during runtime
* used to fragment the shared memory pool at daemon startup
Expand Down
2 changes: 0 additions & 2 deletions mem/shm_mem.h
Original file line number Diff line number Diff line change
Expand Up @@ -629,9 +629,7 @@ inline static void _shm_free_bulk(void *ptr,
#define shm_free_bulk( _ptr ) _shm_free_bulk( (_ptr), \
__FILE__, __FUNCTION__, __LINE__ )

#ifndef HP_MALLOC
extern unsigned long long *shm_hash_usage;
#endif

#else /*DBG_MALLOC*/

Expand Down

0 comments on commit 7f2bf4f

Please sign in to comment.