diff options
Diffstat (limited to 'src/fs/fs_uri.c')
-rw-r--r-- | src/fs/fs_uri.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/src/fs/fs_uri.c b/src/fs/fs_uri.c index 0c2d64cac..8d8479d8f 100644 --- a/src/fs/fs_uri.c +++ b/src/fs/fs_uri.c | |||
@@ -98,7 +98,7 @@ | |||
98 | * @param key wherer to store the unique key | 98 | * @param key wherer to store the unique key |
99 | */ | 99 | */ |
100 | void | 100 | void |
101 | GNUNET_FS_uri_to_key (const struct GNUNET_FS_Uri *uri, GNUNET_HashCode * key) | 101 | GNUNET_FS_uri_to_key (const struct GNUNET_FS_Uri *uri, struct GNUNET_HashCode * key) |
102 | { | 102 | { |
103 | switch (uri->type) | 103 | switch (uri->type) |
104 | { | 104 | { |
@@ -121,7 +121,7 @@ GNUNET_FS_uri_to_key (const struct GNUNET_FS_Uri *uri, GNUNET_HashCode * key) | |||
121 | key); | 121 | key); |
122 | break; | 122 | break; |
123 | default: | 123 | default: |
124 | memset (key, 0, sizeof (GNUNET_HashCode)); | 124 | memset (key, 0, sizeof (struct GNUNET_HashCode)); |
125 | break; | 125 | break; |
126 | } | 126 | } |
127 | } | 127 | } |
@@ -355,7 +355,7 @@ static struct GNUNET_FS_Uri * | |||
355 | uri_sks_parse (const char *s, char **emsg) | 355 | uri_sks_parse (const char *s, char **emsg) |
356 | { | 356 | { |
357 | struct GNUNET_FS_Uri *ret; | 357 | struct GNUNET_FS_Uri *ret; |
358 | GNUNET_HashCode namespace; | 358 | struct GNUNET_HashCode namespace; |
359 | char *identifier; | 359 | char *identifier; |
360 | unsigned int pos; | 360 | unsigned int pos; |
361 | size_t slen; | 361 | size_t slen; |
@@ -963,7 +963,7 @@ GNUNET_FS_uri_sks_create (struct GNUNET_FS_Namespace *ns, const char *id, | |||
963 | * @return an FS URI for the given namespace and identifier | 963 | * @return an FS URI for the given namespace and identifier |
964 | */ | 964 | */ |
965 | struct GNUNET_FS_Uri * | 965 | struct GNUNET_FS_Uri * |
966 | GNUNET_FS_uri_sks_create_from_nsid (GNUNET_HashCode * nsid, const char *id) | 966 | GNUNET_FS_uri_sks_create_from_nsid (struct GNUNET_HashCode * nsid, const char *id) |
967 | { | 967 | { |
968 | struct GNUNET_FS_Uri *ns_uri; | 968 | struct GNUNET_FS_Uri *ns_uri; |
969 | 969 | ||
@@ -1273,7 +1273,7 @@ GNUNET_FS_uri_test_equal (const struct GNUNET_FS_Uri *u1, | |||
1273 | case sks: | 1273 | case sks: |
1274 | if ((0 == | 1274 | if ((0 == |
1275 | memcmp (&u1->data.sks.namespace, &u2->data.sks.namespace, | 1275 | memcmp (&u1->data.sks.namespace, &u2->data.sks.namespace, |
1276 | sizeof (GNUNET_HashCode))) && | 1276 | sizeof (struct GNUNET_HashCode))) && |
1277 | (0 == strcmp (u1->data.sks.identifier, u2->data.sks.identifier))) | 1277 | (0 == strcmp (u1->data.sks.identifier, u2->data.sks.identifier))) |
1278 | 1278 | ||
1279 | return GNUNET_YES; | 1279 | return GNUNET_YES; |
@@ -1334,7 +1334,7 @@ GNUNET_FS_uri_test_sks (const struct GNUNET_FS_Uri *uri) | |||
1334 | */ | 1334 | */ |
1335 | int | 1335 | int |
1336 | GNUNET_FS_uri_sks_get_namespace (const struct GNUNET_FS_Uri *uri, | 1336 | GNUNET_FS_uri_sks_get_namespace (const struct GNUNET_FS_Uri *uri, |
1337 | GNUNET_HashCode * nsid) | 1337 | struct GNUNET_HashCode * nsid) |
1338 | { | 1338 | { |
1339 | if (!GNUNET_FS_uri_test_sks (uri)) | 1339 | if (!GNUNET_FS_uri_test_sks (uri)) |
1340 | { | 1340 | { |
@@ -1931,7 +1931,7 @@ uri_ksk_to_string (const struct GNUNET_FS_Uri *uri) | |||
1931 | static char * | 1931 | static char * |
1932 | uri_sks_to_string (const struct GNUNET_FS_Uri *uri) | 1932 | uri_sks_to_string (const struct GNUNET_FS_Uri *uri) |
1933 | { | 1933 | { |
1934 | const GNUNET_HashCode *namespace; | 1934 | const struct GNUNET_HashCode *namespace; |
1935 | const char *identifier; | 1935 | const char *identifier; |
1936 | char *ret; | 1936 | char *ret; |
1937 | struct GNUNET_CRYPTO_HashAsciiEncoded ns; | 1937 | struct GNUNET_CRYPTO_HashAsciiEncoded ns; |