mirror of
https://gitlab.freedesktop.org/plymouth/plymouth.git
synced 2026-05-08 10:08:06 +02:00
[hashtable] add "static" specifier to internal functions
This commit is contained in:
parent
990dd63275
commit
67ec695d6f
1 changed files with 5 additions and 4 deletions
|
|
@ -190,7 +190,7 @@ ply_hashtable_resize (ply_hashtable_t *hashtable)
|
|||
free (oldnodes);
|
||||
}
|
||||
|
||||
inline void
|
||||
static inline void
|
||||
ply_hashtable_resize_check (ply_hashtable_t *hashtable)
|
||||
{
|
||||
if (hashtable->total_node_count < (hashtable->dirty_node_count * 2))
|
||||
|
|
@ -285,9 +285,10 @@ ply_hashtable_foreach (ply_hashtable_t *hashtable,
|
|||
#ifdef PLY_HASHTABLE_ENABLE_TEST
|
||||
#include <stdio.h>
|
||||
|
||||
void foreach_func (void *key,
|
||||
void *data,
|
||||
void *user_data)
|
||||
static void
|
||||
foreach_func (void *key,
|
||||
void *data,
|
||||
void *user_data)
|
||||
{
|
||||
printf ("foreach key:%s data:%s\n", (char*) key, (char*) data);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue