From c3676cbb6edc72234e2523b3fac874aad4131100 Mon Sep 17 00:00:00 2001 From: Pekka Riikonen Date: Sat, 15 Mar 2003 14:49:08 +0000 Subject: [PATCH] Save 4 bytes of memory. --- lib/silcutil/silcdlist.h | 2 +- lib/silcutil/silchashtable.h | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/lib/silcutil/silcdlist.h b/lib/silcutil/silcdlist.h index 2e62a907..9eaa0fd2 100644 --- a/lib/silcutil/silcdlist.h +++ b/lib/silcutil/silcdlist.h @@ -199,7 +199,7 @@ void silc_dlist_add(SilcDList list, void *context) { SilcDListEntry e = (SilcDListEntry)silc_malloc(sizeof(*e)); if (!e) - return NULL; + return; e->context = context; silc_list_add(list->list, e); } diff --git a/lib/silcutil/silchashtable.h b/lib/silcutil/silchashtable.h index 690eff47..478ea184 100644 --- a/lib/silcutil/silchashtable.h +++ b/lib/silcutil/silchashtable.h @@ -89,8 +89,8 @@ typedef struct SilcHashTableListStruct SilcHashTableList; struct SilcHashTableListStruct { SilcHashTable ht; void *entry; - SilcUInt32 index; - bool auto_rehash; + unsigned int index : 31; + unsigned int auto_rehash : 1; }; /***/ @@ -138,7 +138,7 @@ typedef bool (*SilcHashCompare)(void *key1, void *key2, void *user_context); * DESCRIPTION * * A destructor callback that the library will call to destroy the - * `key' and `context'. The appliation provides the function when + * `key' and `context'. The application provides the function when * allocating a new hash table. The `user_context' is application * specific context and is delivered to the callback. * -- 2.24.0