diff options
author | Christian Grothoff <christian@grothoff.org> | 2013-03-05 13:48:14 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2013-03-05 13:48:14 +0000 |
commit | 9dd0d8bfcff777e2f53922eb10445ac29bc6afc2 (patch) | |
tree | b581ce09f5551161b7370a8efc98a4a6e8493505 /src/include/gnunet_strings_lib.h | |
parent | e5cc8dcd9c82d1736b6c4cfd0a52fc1dcf9ea154 (diff) | |
download | gnunet-9dd0d8bfcff777e2f53922eb10445ac29bc6afc2.tar.gz gnunet-9dd0d8bfcff777e2f53922eb10445ac29bc6afc2.zip |
-improve strings API
Diffstat (limited to 'src/include/gnunet_strings_lib.h')
-rw-r--r-- | src/include/gnunet_strings_lib.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/include/gnunet_strings_lib.h b/src/include/gnunet_strings_lib.h index 64dbd1ef3..c925f5164 100644 --- a/src/include/gnunet_strings_lib.h +++ b/src/include/gnunet_strings_lib.h | |||
@@ -279,7 +279,7 @@ GNUNET_STRINGS_get_short_name (const char *filename); | |||
279 | * @return pointer to the next byte in 'out' or NULL on error. | 279 | * @return pointer to the next byte in 'out' or NULL on error. |
280 | */ | 280 | */ |
281 | char * | 281 | char * |
282 | GNUNET_STRINGS_data_to_string (const unsigned char *data, | 282 | GNUNET_STRINGS_data_to_string (const void *data, |
283 | size_t size, | 283 | size_t size, |
284 | char *out, | 284 | char *out, |
285 | size_t out_size); | 285 | size_t out_size); |
@@ -292,13 +292,13 @@ GNUNET_STRINGS_data_to_string (const unsigned char *data, | |||
292 | * @param enc the encoding | 292 | * @param enc the encoding |
293 | * @param enclen number of characters in 'enc' (without 0-terminator, which can be missing) | 293 | * @param enclen number of characters in 'enc' (without 0-terminator, which can be missing) |
294 | * @param out location where to store the decoded data | 294 | * @param out location where to store the decoded data |
295 | * @param out_size sizeof the output buffer | 295 | * @param out_size size of the output buffer |
296 | * @return GNUNET_OK on success, GNUNET_SYSERR if result has the wrong encoding | 296 | * @return GNUNET_OK on success, GNUNET_SYSERR if result has the wrong encoding |
297 | */ | 297 | */ |
298 | int | 298 | int |
299 | GNUNET_STRINGS_string_to_data (const char *enc, | 299 | GNUNET_STRINGS_string_to_data (const char *enc, |
300 | size_t enclen, | 300 | size_t enclen, |
301 | unsigned char *out, | 301 | void *out, |
302 | size_t out_size); | 302 | size_t out_size); |
303 | 303 | ||
304 | 304 | ||