Minor documentation / stylistic updates

This commit is contained in:
Fufu Fang 2019-10-24 03:15:30 +01:00
parent 79d469d3b6
commit 0a5dd74b44
No known key found for this signature in database
GPG Key ID: 0F6BB5EF6F8BB729
4 changed files with 5 additions and 4 deletions

View File

@ -165,7 +165,8 @@ ${XDG_CONFIG_HOME}/httpdirfs, rather than ${HOME}/.httpdirfs
## [1.0] - 2018-08-22
- Initial release, everything works correctly, as far as I know.
[Unreleased]: https://github.com/fangfufu/httpdirfs/compare/1.1.10...HEAD
[Unreleased]: https://github.com/fangfufu/httpdirfs/compare/Unreleased...1.2.0
[1.2.0]: https://github.com/fangfufu/httpdirfs/compare/1.2.0...1.1.10
[1.1.10]: https://github.com/fangfufu/httpdirfs/compare/1.1.9...1.1.10
[1.1.9]: https://github.com/fangfufu/httpdirfs/compare/1.1.8...1.1.9
[1.1.8]: https://github.com/fangfufu/httpdirfs/compare/1.1.7...1.1.8

View File

@ -46,7 +46,7 @@ void sonic_config_init(const char *server, const char *username,
/**
* \brief generate authentication string
*/
static char *sonic_gen_auth_str()
static char *sonic_gen_auth_str(void)
{
char *salt = generate_salt();
size_t password_len = strnlen(SONIC_CONFIG.password, MAX_FILENAME_LEN);

View File

@ -163,7 +163,7 @@ void erase_string(FILE *file, size_t max_len, char *s)
}
}
char *generate_salt()
char *generate_salt(void)
{
char *out;
out = CALLOC(SALT_LEN + 1, sizeof(char));

View File

@ -114,7 +114,7 @@ void erase_string(FILE *file, size_t max_len, char *s);
* \details this effectively generates a UUID string, which we use as the salt
* \return a pointer to a 37-char array with the salt.
*/
char *generate_salt();
char *generate_salt(void);
/**
* \brief generate the md5sum of a string