]> git.ipfire.org Git - thirdparty/plymouth.git/commitdiff
[hashtable] add "static" specifier to internal functions
authorRay Strode <rstrode@redhat.com>
Wed, 5 Aug 2009 22:33:54 +0000 (18:33 -0400)
committerRay Strode <rstrode@redhat.com>
Wed, 5 Aug 2009 22:33:54 +0000 (18:33 -0400)
src/libply/ply-hashtable.c

index 18bf9ce0c5fd27b3089813a8e197cb457019776f..1c91f5f2206e1fcc73d175546b3d0dda4901b28d 100644 (file)
@@ -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);
 }