diff --git a/CHANGELOG.md b/CHANGELOG.md index a96a149..e894edb 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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 diff --git a/src/sonic.c b/src/sonic.c index 7fa5398..ec0f157 100644 --- a/src/sonic.c +++ b/src/sonic.c @@ -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); diff --git a/src/util.c b/src/util.c index 82e0c79..d10ca18 100644 --- a/src/util.c +++ b/src/util.c @@ -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)); diff --git a/src/util.h b/src/util.h index 48892ec..773f3fe 100644 --- a/src/util.h +++ b/src/util.h @@ -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