summaryrefslogtreecommitdiff
path: root/wm/olvwm/patches/patch-ag
blob: 3e46dc20c8b4e85b6ca09c153b44781c01b2765a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
$NetBSD: patch-ag,v 1.2 2013/03/28 21:40:10 joerg Exp $

--- st.c.orig	2000-03-02 21:40:47.000000000 +0000
+++ st.c
@@ -44,6 +44,8 @@
 	(table->hash == ST_NUMHASH) ? ((int) (key) % table->num_bins) :\
 	(*table->hash)((key), table->num_bins))*/
 
+static rehash();
+
 st_table *st_init_table_with_params(compare, hash, size, density, grow_factor,
 				    reorder_flag)
 int (*compare)();
@@ -320,10 +322,7 @@ char **value;
     return 0;
 }
 
-st_foreach(table, func, arg)
-st_table *table;
-enum st_retval (*func)();
-char *arg;
+void st_foreach(st_table *table, enum st_retval (*func)(), char *arg)
 {
     st_table_entry *ptr, *last, *tmp;
     enum st_retval retval;