diff options
author | Christian Grothoff <christian@grothoff.org> | 2017-02-22 14:53:11 +0100 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2017-02-22 14:53:11 +0100 |
commit | 0244c0d86cd86e4cc90e0c112c6edeafdfb558c2 (patch) | |
tree | b534b32562883064a09d856f700995a2f1b5cc42 /src/include | |
parent | 7184623654f81c1ba557f8fa95a3086342b4af6b (diff) | |
download | gnunet-0244c0d86cd86e4cc90e0c112c6edeafdfb558c2.tar.gz gnunet-0244c0d86cd86e4cc90e0c112c6edeafdfb558c2.zip |
strcmp instead of memcmp
Diffstat (limited to 'src/include')
-rw-r--r-- | src/include/gnunet_strings_lib.h | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/src/include/gnunet_strings_lib.h b/src/include/gnunet_strings_lib.h index 0328882dd..144780c82 100644 --- a/src/include/gnunet_strings_lib.h +++ b/src/include/gnunet_strings_lib.h | |||
@@ -360,6 +360,18 @@ GNUNET_STRINGS_base64_decode (const char *data, | |||
360 | 360 | ||
361 | 361 | ||
362 | /** | 362 | /** |
363 | * Convert a peer path to a human-readable string. | ||
364 | * | ||
365 | * @param pids array of PIDs to convert to a string | ||
366 | * @param num_pids length of the @a pids array | ||
367 | * @return string representing the array of @a pids | ||
368 | */ | ||
369 | char * | ||
370 | GNUNET_STRINGS_pp2s (const struct GNUNET_PeerIdentity *pids, | ||
371 | unsigned int num_pids); | ||
372 | |||
373 | |||
374 | /** | ||
363 | * Parse a path that might be an URI. | 375 | * Parse a path that might be an URI. |
364 | * | 376 | * |
365 | * @param path path to parse. Must be NULL-terminated. | 377 | * @param path path to parse. Must be NULL-terminated. |
@@ -477,7 +489,7 @@ GNUNET_STRINGS_to_address_ipv4 (const char *zt_addr, | |||
477 | 489 | ||
478 | 490 | ||
479 | /** | 491 | /** |
480 | * Parse an address given as a string into a | 492 | * Parse an address given as a string into a |
481 | * `struct sockaddr`. | 493 | * `struct sockaddr`. |
482 | * | 494 | * |
483 | * @param addr the address | 495 | * @param addr the address |