Hashtable update

- use consistent type for key by introducing a new typedef
- use unsigned types for sizes
- name parameters in foreach function typedef
This commit is contained in:
Christian Göttsche
2020-10-21 21:25:59 +02:00
committed by BenBE
parent 15eab2012d
commit 7914ec201e
5 changed files with 31 additions and 29 deletions

View File

@ -100,7 +100,7 @@ static bool changePriority(MainPanel* panel, int delta) {
return anyTagged;
}
static void addUserToVector(int key, void* userCast, void* panelCast) {
static void addUserToVector(hkey_t key, void* userCast, void* panelCast) {
const char* user = userCast;
Panel* panel = panelCast;
Panel_add(panel, (Object*) ListItem_new(user, key));