Save 4 bytes of memory.
authorPekka Riikonen <priikone@silcnet.org>
Sat, 15 Mar 2003 14:49:08 +0000 (14:49 +0000)
committerPekka Riikonen <priikone@silcnet.org>
Sat, 15 Mar 2003 14:49:08 +0000 (14:49 +0000)
lib/silcutil/silcdlist.h
lib/silcutil/silchashtable.h

index 2e62a9077c1e91d6447b52b13d6c2f1dd0bc5b0d..9eaa0fd268a2ecc5e9bd155d28f560be5abf3773 100644 (file)
@@ -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);
 }
index 690eff478f872fccb8b1b55afa2ae88b96bae0a0..478ea184a6a23128f8d710c899bb26a4de2a151b 100644 (file)
@@ -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.
  *