pinentry/pinentry-0.7.4-glib2.patch

45 lines
1009 B
Diff

diff -up pinentry-0.7.4/gtk+-2/gtksecentry.c.glib2 pinentry-0.7.4/gtk+-2/gtksecentry.c
--- pinentry-0.7.4/gtk+-2/gtksecentry.c.glib2 2007-11-28 16:57:55.000000000 -0600
+++ pinentry-0.7.4/gtk+-2/gtksecentry.c 2008-03-25 09:27:37.000000000 -0500
@@ -270,7 +270,7 @@ gboolean g_use_secure_mem = FALSE;
gpointer
-g_malloc(gulong size)
+g_malloc(gsize size)
{
gpointer p;
@@ -282,13 +282,13 @@ g_malloc(gulong size)
else
p = (gpointer) malloc(size);
if (!p)
- g_error("could not allocate %ld bytes", size);
+ g_error("could not allocate %ui bytes", size);
return p;
}
gpointer
-g_malloc0(gulong size)
+g_malloc0(gsize size)
{
gpointer p;
@@ -302,13 +302,13 @@ g_malloc0(gulong size)
} else
p = (gpointer) calloc(size, 1);
if (!p)
- g_error("could not allocate %ld bytes", size);
+ g_error("could not allocate %ui bytes", size);
return p;
}
gpointer
-g_realloc(gpointer mem, gulong size)
+g_realloc(gpointer mem, gsize size)
{
gpointer p;