From 973ae30e7c4f7a1afb385dd3d8eeea178f981445 Mon Sep 17 00:00:00 2001 From: Jannis Hoffmann Date: Mon, 8 Jul 2024 13:24:39 +0200 Subject: fix deprecated prototypes --- src/srs2.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'src/srs2.c') diff --git a/src/srs2.c b/src/srs2.c index ccf53ed..719d9f1 100644 --- a/src/srs2.c +++ b/src/srs2.c @@ -285,7 +285,7 @@ static void srs_hash_create_v(srs_t *srs, int idx, char *buf, int nargs, va_list buf[srs->hashlen] = '\0'; } -int srs_hash_create(srs_t *srs, char *buf, int nargs, ...) +static int srs_hash_create(srs_t *srs, char *buf, int nargs, ...) { va_list ap; @@ -300,7 +300,7 @@ int srs_hash_create(srs_t *srs, char *buf, int nargs, ...) return SRS_SUCCESS; } -int srs_hash_check(srs_t *srs, char *hash, int nargs, ...) +static int srs_hash_check(srs_t *srs, char *hash, int nargs, ...) { va_list ap; char *srshash; @@ -329,7 +329,7 @@ int srs_hash_check(srs_t *srs, char *hash, int nargs, ...) return SRS_EHASHINVALID; } -int srs_compile_shortcut( +static int srs_compile_shortcut( srs_t *srs, char *buf, int buflen, char *sendhost, char *senduser, const char *aliashost) { char *srshash; @@ -371,7 +371,7 @@ int srs_compile_shortcut( return SRS_SUCCESS; } -int srs_compile_guarded( +static int srs_compile_guarded( srs_t *srs, char *buf, int buflen, char *sendhost, char *senduser, const char *aliashost) { char *srshost; @@ -434,7 +434,7 @@ int srs_compile_guarded( return SRS_SUCCESS; } -int srs_parse_shortcut(srs_t *srs, char *buf, int buflen, char *senduser) +static int srs_parse_shortcut(srs_t *srs, char *buf, int buflen, char *senduser) { char *srshash; char *srsstamp; @@ -465,7 +465,7 @@ int srs_parse_shortcut(srs_t *srs, char *buf, int buflen, char *senduser) return SRS_ENOTSRSADDRESS; } -int srs_parse_guarded(srs_t *srs, char *buf, int buflen, char *senduser) +static int srs_parse_guarded(srs_t *srs, char *buf, int buflen, char *senduser) { char *srshash; char *srshost; -- cgit v1.2.3