|
@@ -65,7 +65,7 @@
|
|
|
* int main(int argc, char *argv[])
|
|
* int main(int argc, char *argv[])
|
|
|
* {
|
|
* {
|
|
|
* struct htable ht;
|
|
* struct htable ht;
|
|
|
- * unsigned int i;
|
|
|
|
|
|
|
+ * int i;
|
|
|
* unsigned long val;
|
|
* unsigned long val;
|
|
|
*
|
|
*
|
|
|
* if (argc < 2)
|
|
* if (argc < 2)
|
|
@@ -74,7 +74,7 @@
|
|
|
*
|
|
*
|
|
|
* // Create and populate hash table.
|
|
* // Create and populate hash table.
|
|
|
* htable_init(&ht, rehash, NULL);
|
|
* htable_init(&ht, rehash, NULL);
|
|
|
- * for (i = 0; i < sizeof(map)/sizeof(map[0]); i++)
|
|
|
|
|
|
|
+ * for (i = 0; i < (int)(sizeof(map)/sizeof(map[0])); i++)
|
|
|
* htable_add(&ht, hash_string(map[i].name), &map[i]);
|
|
* htable_add(&ht, hash_string(map[i].name), &map[i]);
|
|
|
*
|
|
*
|
|
|
* // Add any aliases to the hash table.
|
|
* // Add any aliases to the hash table.
|