diff options
author | Jeffrey Stedfast <fejj@ximian.com> | 2004-02-04 12:07:39 +0800 |
---|---|---|
committer | Jeffrey Stedfast <fejj@src.gnome.org> | 2004-02-04 12:07:39 +0800 |
commit | 81ea466c6ae4b3d465f9921257a16cf584676f1b (patch) | |
tree | af5b61e6c81524865cdec644910fafe53069206e /camel/camel-folder.c | |
parent | c16b5e3a40e4624db26826dfa6d4f3506278305b (diff) | |
download | gsoc2013-evolution-81ea466c6ae4b3d465f9921257a16cf584676f1b.tar.gz gsoc2013-evolution-81ea466c6ae4b3d465f9921257a16cf584676f1b.tar.zst gsoc2013-evolution-81ea466c6ae4b3d465f9921257a16cf584676f1b.zip |
Use macro casts from int to pointer.
2004-02-03 Jeffrey Stedfast <fejj@ximian.com>
* camel-vee-folder.c (vee_folder_build_folder): Use macro casts
from int to pointer.
* camel-folder.c (camel_folder_change_info_add_source): Same as below.
(camel_folder_change_info_add_source_list): Same.
* camel-folder-search.c (camel_folder_search_execute_expression):
Use GINT_TO_POINTER() to cast 1 to a pointer for
g_hash_table_insert().
* camel-vee-folder.c (vee_folder_remove_folder): 64bit fixes.
(folder_added_uid): Same.
(vee_folder_build_folder): Here too.
(folder_changed_add_uid): And here.
(folder_changed_remove_uid): Same.
svn path=/trunk/; revision=24597
Diffstat (limited to 'camel/camel-folder.c')
-rw-r--r-- | camel/camel-folder.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/camel/camel-folder.c b/camel/camel-folder.c index 3bf6db50a0..b3a7b93713 100644 --- a/camel/camel-folder.c +++ b/camel/camel-folder.c @@ -1819,7 +1819,7 @@ camel_folder_change_info_add_source(CamelFolderChangeInfo *info, const char *uid p->uid_source = g_hash_table_new(g_str_hash, g_str_equal); if (g_hash_table_lookup(p->uid_source, uid) == NULL) - g_hash_table_insert(p->uid_source, e_mempool_strdup(p->uid_pool, uid), (void *)1); + g_hash_table_insert(p->uid_source, e_mempool_strdup(p->uid_pool, uid), GINT_TO_POINTER (1)); } /** @@ -1847,7 +1847,7 @@ camel_folder_change_info_add_source_list(CamelFolderChangeInfo *info, const GPtr char *uid = list->pdata[i]; if (g_hash_table_lookup(p->uid_source, uid) == NULL) - g_hash_table_insert(p->uid_source, e_mempool_strdup(p->uid_pool, uid), (void *)1); + g_hash_table_insert(p->uid_source, e_mempool_strdup(p->uid_pool, uid), GINT_TO_POINTER (1)); } } |