diff src/master/login-process.c @ 8573:f9166a09423a HEAD

Renamed hash_*() to hash_table_*() to avoid conflicts with OSX's strhash.h Based on patch by Apple.
author Timo Sirainen <tss@iki.fi>
date Fri, 19 Dec 2008 09:06:38 +0200
parents 8fb20b423f8b
children b9faf4db2a9f
line wrap: on
line diff
--- a/src/master/login-process.c	Fri Dec 19 08:50:14 2008 +0200
+++ b/src/master/login-process.c	Fri Dec 19 09:06:38 2008 +0200
@@ -757,14 +757,14 @@
 	struct hash_iterate_context *iter;
 	void *key, *value;
 
-	iter = hash_iterate_init(processes);
-	while (hash_iterate(iter, &key, &value)) {
+	iter = hash_table_iterate_init(processes);
+	while (hash_table_iterate(iter, &key, &value)) {
 		struct login_process *p = value;
 
 		if (p->process.type == PROCESS_TYPE_LOGIN)
 			login_process_destroy(p);
 	}
-	hash_iterate_deinit(&iter);
+	hash_table_iterate_deinit(&iter);
 
 	while (login_groups != NULL) {
 		struct login_group *group = login_groups;
@@ -782,14 +782,14 @@
 
 	memset(&reply, 0, sizeof(reply));
 
-	iter = hash_iterate_init(processes);
-	while (hash_iterate(iter, &key, &value)) {
+	iter = hash_table_iterate_init(processes);
+	while (hash_table_iterate(iter, &key, &value)) {
 		struct login_process *p = value;
 
 		if (p->process.type == PROCESS_TYPE_LOGIN && p->group == group)
 			(void)o_stream_send(p->output, &reply, sizeof(reply));
 	}
-	hash_iterate_deinit(&iter);
+	hash_table_iterate_deinit(&iter);
 }
 
 static int login_group_start_missings(struct login_group *group)