mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-29 05:38:00 +00:00
Fix some C99'isms for 4.x
Approved by: kwm
This commit is contained in:
parent
ac7cf71ca7
commit
64b63c462d
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=147844
@ -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) {
|
@ -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;
|
||||
+ }
|
||||
}
|
||||
|
||||
/**
|
21
databases/libgnomedb/files/patch-libgnomedb_gnome-db-grid.c
Normal file
21
databases/libgnomedb/files/patch-libgnomedb_gnome-db-grid.c
Normal file
@ -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;
|
||||
}
|
@ -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"
|
Loading…
Reference in New Issue
Block a user