diff options
author | Christian Grothoff <christian@grothoff.org> | 2012-10-31 21:52:22 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2012-10-31 21:52:22 +0000 |
commit | 2f89bf96ec45f3c2548d3428c7eeffd17bc3b02b (patch) | |
tree | 7922c54f85d08a3960c3869579e1a6eecaf784c9 /src/setup/gnunet-setup-gns.c | |
parent | 79fac466b76ac09079eb89060c084b9b4ee4b5c1 (diff) | |
download | gnunet-gtk-2f89bf96ec45f3c2548d3428c7eeffd17bc3b02b.tar.gz gnunet-gtk-2f89bf96ec45f3c2548d3428c7eeffd17bc3b02b.zip |
-fix #2605
Diffstat (limited to 'src/setup/gnunet-setup-gns.c')
-rw-r--r-- | src/setup/gnunet-setup-gns.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/setup/gnunet-setup-gns.c b/src/setup/gnunet-setup-gns.c index ae6904b3..efaf77b6 100644 --- a/src/setup/gnunet-setup-gns.c +++ b/src/setup/gnunet-setup-gns.c | |||
@@ -553,7 +553,7 @@ check_name_validity_and_commit (const gchar *path, const char * oldname) | |||
553 | GNS_TREESTORE_COL_VAL_AS_STR, &n_value, | 553 | GNS_TREESTORE_COL_VAL_AS_STR, &n_value, |
554 | -1); | 554 | -1); |
555 | if ( (NULL == n_name) || | 555 | if ( (NULL == n_name) || |
556 | (GNUNET_SYSERR == GNUNET_NAMESTORE_check_name (n_name)) || | 556 | (GNUNET_SYSERR == GNUNET_DNSPARSER_check_label (n_name)) || |
557 | (0 == n_type) || | 557 | (0 == n_type) || |
558 | (0 == n_exp_time) || | 558 | (0 == n_exp_time) || |
559 | (NULL == n_value) || | 559 | (NULL == n_value) || |
@@ -1064,7 +1064,7 @@ GNUNET_setup_gns_name_cellrenderertext_edited_cb (GtkCellRendererText *renderer, | |||
1064 | if ((0 == strcmp (new_text, NEW_NAME_STR)) || (0 == strcmp (new_text, ""))) | 1064 | if ((0 == strcmp (new_text, NEW_NAME_STR)) || (0 == strcmp (new_text, ""))) |
1065 | return; | 1065 | return; |
1066 | if (GNUNET_OK != | 1066 | if (GNUNET_OK != |
1067 | GNUNET_NAMESTORE_check_name (new_text)) | 1067 | GNUNET_DNSPARSER_check_label (new_text)) |
1068 | { | 1068 | { |
1069 | GNUNET_log (GNUNET_ERROR_TYPE_WARNING, | 1069 | GNUNET_log (GNUNET_ERROR_TYPE_WARNING, |
1070 | _("Name `%s' invalid for GADS/DNS (too long for a DNS label?)\n"), | 1070 | _("Name `%s' invalid for GADS/DNS (too long for a DNS label?)\n"), |
@@ -1126,7 +1126,7 @@ GNUNET_setup_gns_name_cellrenderertext_edited_cb (GtkCellRendererText *renderer, | |||
1126 | check_name_validity_and_commit (gtk_tree_model_get_string_from_iter(tm, &it), name); | 1126 | check_name_validity_and_commit (gtk_tree_model_get_string_from_iter(tm, &it), name); |
1127 | } | 1127 | } |
1128 | 1128 | ||
1129 | if (GNUNET_SYSERR == GNUNET_NAMESTORE_check_name (new_text)) | 1129 | if (GNUNET_SYSERR == GNUNET_DNSPARSER_check_label (new_text)) |
1130 | { | 1130 | { |
1131 | gtk_tree_store_set (ts, &it, | 1131 | gtk_tree_store_set (ts, &it, |
1132 | GNS_TREESTORE_COL_NAME_COLOR, "red", | 1132 | GNS_TREESTORE_COL_NAME_COLOR, "red", |
@@ -1624,7 +1624,7 @@ GNUNET_setup_gns_pseu_entry_changed_cb (GtkEditable *editable, | |||
1624 | 1624 | ||
1625 | pseu = gtk_entry_get_text (GTK_ENTRY (editable)); | 1625 | pseu = gtk_entry_get_text (GTK_ENTRY (editable)); |
1626 | if (GNUNET_OK != | 1626 | if (GNUNET_OK != |
1627 | GNUNET_NAMESTORE_check_name (pseu)) | 1627 | GNUNET_DNSPARSER_check_label (pseu)) |
1628 | { | 1628 | { |
1629 | GNUNET_log (GNUNET_ERROR_TYPE_WARNING, | 1629 | GNUNET_log (GNUNET_ERROR_TYPE_WARNING, |
1630 | _("Name `%s' invalid for GADS/DNS (too long for a DNS label?)\n"), | 1630 | _("Name `%s' invalid for GADS/DNS (too long for a DNS label?)\n"), |
@@ -1783,7 +1783,7 @@ zone_iteration_proc (void *cls, | |||
1783 | GNS_TREESTORE_COL_NOT_DUMMY_ROW, FALSE, | 1783 | GNS_TREESTORE_COL_NOT_DUMMY_ROW, FALSE, |
1784 | -1); | 1784 | -1); |
1785 | 1785 | ||
1786 | if (GNUNET_SYSERR == GNUNET_NAMESTORE_check_name (name)) | 1786 | if (GNUNET_SYSERR == GNUNET_DNSPARSER_check_label (name)) |
1787 | { | 1787 | { |
1788 | gtk_tree_store_set (ts, &iter_name, | 1788 | gtk_tree_store_set (ts, &iter_name, |
1789 | GNS_TREESTORE_COL_NAME_COLOR, "red", | 1789 | GNS_TREESTORE_COL_NAME_COLOR, "red", |