diff options
author | Matthias Wachs <wachs@net.in.tum.de> | 2013-11-13 15:17:10 +0000 |
---|---|---|
committer | Matthias Wachs <wachs@net.in.tum.de> | 2013-11-13 15:17:10 +0000 |
commit | f7064551f579211600c4486803e0d31ae05c7061 (patch) | |
tree | 8dc5379c114dcfa2950b3ca503e3e6166f779cde | |
parent | 3b0e481b024aba22e863a81b72a454d021946ced (diff) | |
download | gnunet-gtk-f7064551f579211600c4486803e0d31ae05c7061.tar.gz gnunet-gtk-f7064551f579211600c4486803e0d31ae05c7061.zip |
rename record
-rw-r--r-- | src/fs/gnunet-fs-gtk_main-window-search.c | 4 | ||||
-rw-r--r-- | src/namestore/gnunet-namestore-gtk.c | 6 |
2 files changed, 5 insertions, 5 deletions
diff --git a/src/fs/gnunet-fs-gtk_main-window-search.c b/src/fs/gnunet-fs-gtk_main-window-search.c index 976964ef..cf481166 100644 --- a/src/fs/gnunet-fs-gtk_main-window-search.c +++ b/src/fs/gnunet-fs-gtk_main-window-search.c | |||
@@ -555,7 +555,7 @@ lookup_finished (void *cls, | |||
555 | } | 555 | } |
556 | for (i=0;i<rd_count;i++) | 556 | for (i=0;i<rd_count;i++) |
557 | { | 557 | { |
558 | if (GNUNET_GNSRECORD_TYPE_PSEU == rd[i].record_type) | 558 | if (GNUNET_GNSRECORD_TYPE_NICK == rd[i].record_type) |
559 | { | 559 | { |
560 | nick = rd[i].data; | 560 | nick = rd[i].data; |
561 | if ('\0' != nick[rd[i].data_size - 1]) | 561 | if ('\0' != nick[rd[i].data_size - 1]) |
@@ -697,7 +697,7 @@ GNUNET_FS_GTK_save_button_clicked_cb (GtkButton * button, | |||
697 | lctx->lr = GNUNET_GNS_lookup (main_ctx->gns, | 697 | lctx->lr = GNUNET_GNS_lookup (main_ctx->gns, |
698 | GNUNET_GNS_MASTERZONE_STR, | 698 | GNUNET_GNS_MASTERZONE_STR, |
699 | &pkey, | 699 | &pkey, |
700 | GNUNET_GNSRECORD_TYPE_PSEU, | 700 | GNUNET_GNSRECORD_TYPE_NICK, |
701 | GNUNET_NO, | 701 | GNUNET_NO, |
702 | NULL, | 702 | NULL, |
703 | &lookup_finished, | 703 | &lookup_finished, |
diff --git a/src/namestore/gnunet-namestore-gtk.c b/src/namestore/gnunet-namestore-gtk.c index 88af45b0..8204f4e4 100644 --- a/src/namestore/gnunet-namestore-gtk.c +++ b/src/namestore/gnunet-namestore-gtk.c | |||
@@ -2119,7 +2119,7 @@ gnunet_namestore_gtk_pseu_entry_changed_cb (GtkEditable *editable, | |||
2119 | rd_old)); | 2119 | rd_old)); |
2120 | memcpy (rd_new, rd_old, sizeof (struct GNUNET_GNSRECORD_Data) * rd_count); | 2120 | memcpy (rd_new, rd_old, sizeof (struct GNUNET_GNSRECORD_Data) * rd_count); |
2121 | for (off=0;off<rd_count;off++) | 2121 | for (off=0;off<rd_count;off++) |
2122 | if (GNUNET_GNSRECORD_TYPE_PSEU == rd_new[off].record_type) | 2122 | if (GNUNET_GNSRECORD_TYPE_NICK == rd_new[off].record_type) |
2123 | break; | 2123 | break; |
2124 | if (off == rd_count) | 2124 | if (off == rd_count) |
2125 | total++; | 2125 | total++; |
@@ -2131,7 +2131,7 @@ gnunet_namestore_gtk_pseu_entry_changed_cb (GtkEditable *editable, | |||
2131 | } | 2131 | } |
2132 | else | 2132 | else |
2133 | { | 2133 | { |
2134 | rd_new[off].record_type = GNUNET_GNSRECORD_TYPE_PSEU; | 2134 | rd_new[off].record_type = GNUNET_GNSRECORD_TYPE_NICK; |
2135 | rd_new[off].expiration_time = UINT64_MAX; | 2135 | rd_new[off].expiration_time = UINT64_MAX; |
2136 | rd_new[off].flags = GNUNET_GNSRECORD_RF_NONE; | 2136 | rd_new[off].flags = GNUNET_GNSRECORD_RF_NONE; |
2137 | rd_new[off].data_size = strlen (pseu) + 1; | 2137 | rd_new[off].data_size = strlen (pseu) + 1; |
@@ -2367,7 +2367,7 @@ zone_iteration_proc (void *cls, | |||
2367 | GNUNET_asprintf (&type_str, "%s", EXPIRE_INVALID_STRING); | 2367 | GNUNET_asprintf (&type_str, "%s", EXPIRE_INVALID_STRING); |
2368 | 2368 | ||
2369 | if ( (0 == strcmp (name, GNUNET_GNS_MASTERZONE_STR)) && | 2369 | if ( (0 == strcmp (name, GNUNET_GNS_MASTERZONE_STR)) && |
2370 | (GNUNET_GNSRECORD_TYPE_PSEU == rd[c].record_type) && | 2370 | (GNUNET_GNSRECORD_TYPE_NICK == rd[c].record_type) && |
2371 | (NULL == current_pseudonym) ) | 2371 | (NULL == current_pseudonym) ) |
2372 | { | 2372 | { |
2373 | pseu_entry = GTK_ENTRY((get_object ("gnunet_namestore_gtk_pseu_entry"))); | 2373 | pseu_entry = GTK_ENTRY((get_object ("gnunet_namestore_gtk_pseu_entry"))); |