diff options
Diffstat (limited to 'src/reclaim-attribute/plugin_reclaim_attribute_gnuid.c')
-rw-r--r-- | src/reclaim-attribute/plugin_reclaim_attribute_gnuid.c | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/src/reclaim-attribute/plugin_reclaim_attribute_gnuid.c b/src/reclaim-attribute/plugin_reclaim_attribute_gnuid.c index bd0bb1741..8999bcadf 100644 --- a/src/reclaim-attribute/plugin_reclaim_attribute_gnuid.c +++ b/src/reclaim-attribute/plugin_reclaim_attribute_gnuid.c | |||
@@ -50,10 +50,10 @@ gnuid_value_to_string (void *cls, | |||
50 | 50 | ||
51 | switch (type) | 51 | switch (type) |
52 | { | 52 | { |
53 | case GNUNET_RECLAIM_ATTRIBUTE_TYPE_STRING: | 53 | case GNUNET_RECLAIM_ATTRIBUTE_TYPE_STRING: |
54 | return GNUNET_strndup (data, data_size); | 54 | return GNUNET_strndup (data, data_size); |
55 | default: | 55 | default: |
56 | return NULL; | 56 | return NULL; |
57 | } | 57 | } |
58 | } | 58 | } |
59 | 59 | ||
@@ -81,12 +81,12 @@ gnuid_string_to_value (void *cls, | |||
81 | switch (type) | 81 | switch (type) |
82 | { | 82 | { |
83 | 83 | ||
84 | case GNUNET_RECLAIM_ATTRIBUTE_TYPE_STRING: | 84 | case GNUNET_RECLAIM_ATTRIBUTE_TYPE_STRING: |
85 | *data = GNUNET_strdup (s); | 85 | *data = GNUNET_strdup (s); |
86 | *data_size = strlen (s); | 86 | *data_size = strlen (s); |
87 | return GNUNET_OK; | 87 | return GNUNET_OK; |
88 | default: | 88 | default: |
89 | return GNUNET_SYSERR; | 89 | return GNUNET_SYSERR; |
90 | } | 90 | } |
91 | } | 91 | } |
92 | 92 | ||
@@ -100,7 +100,7 @@ static struct | |||
100 | const char *name; | 100 | const char *name; |
101 | uint32_t number; | 101 | uint32_t number; |
102 | } gnuid_name_map[] = {{"STRING", GNUNET_RECLAIM_ATTRIBUTE_TYPE_STRING}, | 102 | } gnuid_name_map[] = {{"STRING", GNUNET_RECLAIM_ATTRIBUTE_TYPE_STRING}, |
103 | {NULL, UINT32_MAX}}; | 103 | {NULL, UINT32_MAX}}; |
104 | 104 | ||
105 | 105 | ||
106 | /** | 106 | /** |