Skip to content

Commit 8609247

Browse files
refactor(warteraum/auth): fix -Wstrict-prototypes warning
1 parent 839f466 commit 8609247

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

warteraum/auth.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ static struct http_string_s salt;
1212
// easily loop through them.
1313
static struct http_string_s tokens;
1414

15-
bool auth_init() {
15+
bool auth_init(void) {
1616
http_string_clear(&salt);
1717
http_string_clear(&tokens);
1818

@@ -41,7 +41,7 @@ bool auth_init() {
4141
}
4242
}
4343

44-
void auth_cleanup() {
44+
void auth_cleanup(void) {
4545
http_string_free(&salt);
4646
http_string_free(&tokens);
4747
}

warteraum/auth.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,8 @@
1818
(const uint8_t *) salt.buf, salt.len, \
1919
SCRYPT_N, SCRYPT_r, SCRYPT_p, output, SCRYPT_OUTPUT_LEN)
2020

21-
bool auth_init();
22-
void auth_cleanup();
21+
bool auth_init(void);
22+
void auth_cleanup(void);
2323

2424
bool auth_verify(struct http_string_s token);
2525

0 commit comments

Comments
 (0)