From: Ray Strode Date: Wed, 5 Aug 2009 22:33:54 +0000 (-0400) Subject: [hashtable] add "static" specifier to internal functions X-Git-Tag: 0.7.0~61 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=67ec695d6f415954ddf181edd11da50ec9fb837a;p=thirdparty%2Fplymouth.git [hashtable] add "static" specifier to internal functions --- diff --git a/src/libply/ply-hashtable.c b/src/libply/ply-hashtable.c index 18bf9ce0..1c91f5f2 100644 --- a/src/libply/ply-hashtable.c +++ b/src/libply/ply-hashtable.c @@ -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 -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); }