[Gnucash-changes] r12150 - gnucash/trunk - 64-bit issue cleanup in
hbci code:
Joshua Sled
jsled at cvs.gnucash.org
Wed Dec 7 17:37:37 EST 2005
Author: jsled
Date: 2005-12-07 17:37:36 -0500 (Wed, 07 Dec 2005)
New Revision: 12150
Trac: http://svn.gnucash.org/trac/changeset/12150
Modified:
gnucash/trunk/ChangeLog
gnucash/trunk/src/import-export/hbci/hbci-interaction.c
Log:
64-bit issue cleanup in hbci code:
* hbci-interaction.c (inputBoxCB, getTanCB): printf(%d, size_t) casting for 64-bit arch.
* hbci-interaction.c (showBoxCB, hideBoxCB): uint32->pointer(64) casting.
Modified: gnucash/trunk/ChangeLog
===================================================================
--- gnucash/trunk/ChangeLog 2005-12-07 07:09:08 UTC (rev 12149)
+++ gnucash/trunk/ChangeLog 2005-12-07 22:37:36 UTC (rev 12150)
@@ -1,3 +1,9 @@
+2005-12-07 Joshua Sled <jsled at asynchronous.org>
+
+ * hbci-interaction.c (inputBoxCB, getTanCB): printf(%d, size_t)
+ casting for 64-bit arch.
+ * hbci-interaction.c (showBoxCB, hideBoxCB): uint32->pointer(64) casting.
+
2005-12-07 David Hampton <hampton at employees.org>
* src/gnome/gnc-plugin-page-budget.c:
Modified: gnucash/trunk/src/import-export/hbci/hbci-interaction.c
===================================================================
--- gnucash/trunk/src/import-export/hbci/hbci-interaction.c 2005-12-07 07:09:08 UTC (rev 12149)
+++ gnucash/trunk/src/import-export/hbci/hbci-interaction.c 2005-12-07 22:37:36 UTC (rev 12150)
@@ -357,10 +357,10 @@
else if (strlen(passwd) >= (unsigned int)maxLen) {
gboolean retval;
char *msg =
- g_strdup_printf ( _("You entered %d characters, but the PIN must \n"
+ g_strdup_printf ( _("You entered %ld characters, but the PIN must \n"
"be no longer than %d characters. \n"
"Do you want to try again?"),
- strlen(passwd), maxLen);
+ (long)strlen(passwd), maxLen);
retval = gnc_verify_dialog (GTK_WIDGET (data->parent),
TRUE,
msg);
@@ -438,10 +438,10 @@
else if (strlen(passwd) >= (unsigned int)maxLen) {
gboolean retval;
char *msg =
- g_strdup_printf ( _("You entered %d characters, but the TAN must \n"
+ g_strdup_printf ( _("You entered %ld characters, but the TAN must \n"
"be no longer than %d characters. \n"
"Do you want to try again?"),
- strlen(passwd), maxLen);
+ (long)strlen(passwd), maxLen);
retval = gnc_verify_dialog (GTK_WIDGET (data->parent),
TRUE,
msg);
@@ -509,14 +509,14 @@
g_assert(data);
if (id > 0) {
- dialog = g_hash_table_lookup(data->showbox_hash, (gpointer)id);
+ dialog = g_hash_table_lookup(data->showbox_hash, GUINT_TO_POINTER(id));
} else {
dialog = data->showbox_last;
}
if (dialog) {
gtk_widget_hide (dialog);
gtk_widget_destroy (dialog);
- g_hash_table_remove(data->showbox_hash, (gpointer)id);
+ g_hash_table_remove(data->showbox_hash, GUINT_TO_POINTER(id));
}
}
@@ -552,7 +552,7 @@
gtk_widget_show_all (dialog);
result = data->showbox_id;
- g_hash_table_insert(data->showbox_hash, (gpointer)result, dialog);
+ g_hash_table_insert(data->showbox_hash, GUINT_TO_POINTER(result), dialog);
data->showbox_id++;
data->showbox_last = dialog;
More information about the gnucash-changes
mailing list