[OTR-dev] patch to gaim-otr for c89 compliance
Nathan J. Williams
nathanw at MIT.EDU
Mon Apr 11 17:29:02 EDT 2005
I recently added libotr and gaim-otr to NetBSD pkgsrc, and a bulk
build of pkgsrc on an older machine turned up a bit of code with a
declaration after code (legal C++ and C99, but not C89). Here's a
patch for this minor issue.
- Nathan
--- gtk-dialog.c.orig 2005-04-11 11:18:52.000000000 -0400
+++ gtk-dialog.c 2005-04-11 11:19:44.000000000 -0400
@@ -156,6 +156,7 @@
const char *protocol_print;
GtkWidget *label;
GtkWidget *dialog;
+ OtrgDialogWaitHandle handle;
p = gaim_find_prpl(protocol);
protocol_print = (p ? p->info->name : "Unknown");
@@ -166,7 +167,7 @@
dialog = create_dialog(GAIM_NOTIFY_MSG_INFO, title, primary, secondary,
0, &label);
- OtrgDialogWaitHandle handle = malloc(sizeof(struct s_OtrgDialogWait));
+ handle = malloc(sizeof(struct s_OtrgDialogWait));
handle->dialog = dialog;
handle->label = label;
More information about the OTR-dev
mailing list