mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-11-24 04:13:28 +01:00
Fix comment typos in storage.c
This commit is contained in:
parent
25ea8be9de
commit
f6841ae263
@ -76,8 +76,8 @@ storage_dir_free(storage_dir_t *d)
|
|||||||
* operations that <b>d</b> will need.
|
* operations that <b>d</b> will need.
|
||||||
*
|
*
|
||||||
* The presence of this function is why we need an upper limit on the
|
* 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
|
* number of files in a storage_dir_t: we need to approve file operations
|
||||||
* operaitons one by one.
|
* one by one.
|
||||||
*/
|
*/
|
||||||
int
|
int
|
||||||
storage_dir_register_with_sandbox(storage_dir_t *d, sandbox_cfg_t **cfg)
|
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
|
* As storage_dir_save_bytes_to_file, but associates the data with the
|
||||||
* key-value pairs in <b>labels</b>. Files
|
* key-value pairs in <b>labels</b>. Files stored in this format can be
|
||||||
* stored in this format can be recovered with storage_dir_map_labeled
|
* recovered with storage_dir_map_labeled() or storage_dir_read_labeled().
|
||||||
* or storage_dir_read_labeled().
|
|
||||||
*/
|
*/
|
||||||
int
|
int
|
||||||
storage_dir_save_labeled_to_file(storage_dir_t *d,
|
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,
|
* Map a file that was created with storage_dir_save_labeled_to_file(). On
|
||||||
* return NULL. On success, write a set of newly allocated labels into to
|
* failure, return NULL. On success, write a set of newly allocated labels
|
||||||
* *<b>labels_out</b>, a pointer to the into *<b>data_out</b>, and the data's
|
* into *<b>labels_out</b>, a pointer to the data into *<b>data_out</b>, and
|
||||||
* into *<b>sz_out</b>. On success, also return a tor_mmap_t object whose
|
* the data's size into *<b>sz_out</b>. On success, also return a tor_mmap_t
|
||||||
* contents should not be used -- it needs to be kept around, though, for as
|
* object whose contents should not be used -- it needs to be kept around,
|
||||||
* long as <b>data_out</b> is going to be valid.
|
* though, for as long as <b>data_out</b> is going to be valid.
|
||||||
*/
|
*/
|
||||||
tor_mmap_t *
|
tor_mmap_t *
|
||||||
storage_dir_map_labeled(storage_dir_t *dir,
|
storage_dir_map_labeled(storage_dir_t *dir,
|
||||||
|
Loading…
Reference in New Issue
Block a user