From: teor Date: Sun, 28 May 2017 12:11:22 +0000 (+1000) Subject: Fix comment typos in storage.c X-Git-Tag: tor-0.3.1.3-alpha~23^2~5 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=f6841ae26374d3b4d0b479049d7a7c237afffe5c;p=thirdparty%2Ftor.git Fix comment typos in storage.c --- diff --git a/src/common/storagedir.c b/src/common/storagedir.c index 309d42db17..6457f3d009 100644 --- a/src/common/storagedir.c +++ b/src/common/storagedir.c @@ -76,8 +76,8 @@ storage_dir_free(storage_dir_t *d) * operations that d will need. * * The presence of this function is why we need an upper limit on the - * number of filers in a storage_dir_t: we need to approve file - * operaitons one by one. + * number of files in a storage_dir_t: we need to approve file operations + * one by one. */ int storage_dir_register_with_sandbox(storage_dir_t *d, sandbox_cfg_t **cfg) @@ -309,9 +309,8 @@ storage_dir_save_string_to_file(storage_dir_t *d, /** * As storage_dir_save_bytes_to_file, but associates the data with the - * key-value pairs in labels. Files - * stored in this format can be recovered with storage_dir_map_labeled - * or storage_dir_read_labeled(). + * key-value pairs in labels. Files stored in this format can be + * recovered with storage_dir_map_labeled() or storage_dir_read_labeled(). */ int storage_dir_save_labeled_to_file(storage_dir_t *d, @@ -356,12 +355,12 @@ storage_dir_save_labeled_to_file(storage_dir_t *d, } /** - * Map a file that was created with storage_dir_save_labeled(). On failure, - * return NULL. On success, write a set of newly allocated labels into to - * *labels_out, a pointer to the into *data_out, and the data's - * into *sz_out. On success, also return a tor_mmap_t object whose - * contents should not be used -- it needs to be kept around, though, for as - * long as data_out is going to be valid. + * Map a file that was created with storage_dir_save_labeled_to_file(). On + * failure, return NULL. On success, write a set of newly allocated labels + * into *labels_out, a pointer to the data into *data_out, and + * the data's size into *sz_out. On success, also return a tor_mmap_t + * object whose contents should not be used -- it needs to be kept around, + * though, for as long as data_out is going to be valid. */ tor_mmap_t * storage_dir_map_labeled(storage_dir_t *dir,