diff options
author | vs <vs@FreeBSD.org> | 2005-11-11 00:03:00 +0800 |
---|---|---|
committer | vs <vs@FreeBSD.org> | 2005-11-11 00:03:00 +0800 |
commit | b83cd8016ad52683480faed357051e08cdff59f5 (patch) | |
tree | 7f434a9b339511280e32989d770a69173eb0b3c0 /databases/libgnomedb | |
parent | a9c3f6b63e008a3b65ed9e5253a793bde5a8b7c7 (diff) | |
download | freebsd-ports-gnome-b83cd8016ad52683480faed357051e08cdff59f5.tar.gz freebsd-ports-gnome-b83cd8016ad52683480faed357051e08cdff59f5.tar.zst freebsd-ports-gnome-b83cd8016ad52683480faed357051e08cdff59f5.zip |
Fix some C99'isms for 4.x
Approved by: kwm
Diffstat (limited to 'databases/libgnomedb')
4 files changed, 74 insertions, 0 deletions
diff --git a/databases/libgnomedb/files/patch-libgnomedb_gnome-db-data-proxy.c b/databases/libgnomedb/files/patch-libgnomedb_gnome-db-data-proxy.c new file mode 100644 index 000000000000..0cb48e48592a --- /dev/null +++ b/databases/libgnomedb/files/patch-libgnomedb_gnome-db-data-proxy.c @@ -0,0 +1,18 @@ + +$FreeBSD$ + +--- libgnomedb/gnome-db-data-proxy.c.orig ++++ libgnomedb/gnome-db-data-proxy.c +@@ -1272,10 +1272,10 @@ + void + gnome_db_data_proxy_reset_all (GnomeDbDataProxy *proxy) + { +- g_return_if_fail (proxy && IS_GNOME_DB_DATA_PROXY (proxy)); +- g_return_if_fail (proxy->priv); + GtkTreePath *path; + GtkTreeIter iter; ++ g_return_if_fail (proxy && IS_GNOME_DB_DATA_PROXY (proxy)); ++ g_return_if_fail (proxy->priv); + + /* new rows are first treated and removed (no memory de-allocation here, though) */ + if (proxy->priv->new_rows) { diff --git a/databases/libgnomedb/files/patch-libgnomedb_gnome-db-find-dialog.c b/databases/libgnomedb/files/patch-libgnomedb_gnome-db-find-dialog.c new file mode 100644 index 000000000000..44a4771037f8 --- /dev/null +++ b/databases/libgnomedb/files/patch-libgnomedb_gnome-db-find-dialog.c @@ -0,0 +1,20 @@ + +$FreeBSD$ + +--- libgnomedb/gnome-db-find-dialog.c.orig ++++ libgnomedb/gnome-db-find-dialog.c +@@ -220,12 +220,14 @@ + + g_object_ref (dm); + ++ { + GnomeDbFindDialog *dialog = gnome_db_find_dialog_new (title); + gnome_db_find_dialog_add_fields_from_model (dialog, dm); + + g_object_unref (dm); + + return dialog; ++ } + } + + /** diff --git a/databases/libgnomedb/files/patch-libgnomedb_gnome-db-grid.c b/databases/libgnomedb/files/patch-libgnomedb_gnome-db-grid.c new file mode 100644 index 000000000000..7d386cd95afe --- /dev/null +++ b/databases/libgnomedb/files/patch-libgnomedb_gnome-db-grid.c @@ -0,0 +1,21 @@ + +$FreeBSD$ + +--- libgnomedb/gnome-db-grid.c.orig ++++ libgnomedb/gnome-db-grid.c +@@ -1917,6 +1917,7 @@ + else { + /* render all the parameters invalid */ + grid->priv->internal_params_change = TRUE; ++ { + GSList *list = grid->priv->data_set->parameters; + while (list) { + GnomeDbParameter *tmp; +@@ -1925,6 +1926,7 @@ + gnome_db_parameter_declare_invalid (GNOME_DB_PARAMETER (list->data)); + + list = g_slist_next (list); ++ } + } + grid->priv->internal_params_change = FALSE; + } diff --git a/databases/libgnomedb/files/patch-libgnomedb_gnome-db-sql-console.c b/databases/libgnomedb/files/patch-libgnomedb_gnome-db-sql-console.c new file mode 100644 index 000000000000..607e5da74d26 --- /dev/null +++ b/databases/libgnomedb/files/patch-libgnomedb_gnome-db-sql-console.c @@ -0,0 +1,15 @@ + +$FreeBSD$ + +--- libgnomedb/gnome-db-sql-console.c.orig ++++ libgnomedb/gnome-db-sql-console.c +@@ -596,8 +596,8 @@ + + /* help */ + if (!cmde_ok && !strcmp (pcmde, "?")) { +- cmde_ok = TRUE; + GString *string; ++ cmde_ok = TRUE; + + string = g_string_new (_("SQL statements:\n" + " they can span several lines, and are executed\n" |