diff options
author | Arjun <pkillarjun@protonmail.com> | 2024-05-09 20:47:08 +0530 |
---|---|---|
committer | Greg Hudson <ghudson@mit.edu> | 2024-05-22 17:14:53 -0400 |
commit | 623d649ba852839ba4822934bad9f97c184bf3ab (patch) | |
tree | 077db06826b6bc4800fff815cdcc452d9ec11888 /src/tests/threads | |
parent | d035119c3b2b402f3ad49a4c7b6264826ea923bb (diff) | |
download | krb5-623d649ba852839ba4822934bad9f97c184bf3ab.zip krb5-623d649ba852839ba4822934bad9f97c184bf3ab.tar.gz krb5-623d649ba852839ba4822934bad9f97c184bf3ab.tar.bz2 |
Fix more non-prototype functions
Add "void" designations to more function declarations and definitions
not changed by commits 3ae9244cd021a75eba909d872a92c25db490714d and
4b9d7f7c107f01a61600fddcd8cde3812d0366a2.
[ghudson@mit.edu: change additional functions; split into two commits;
rewrote commit message]
Diffstat (limited to 'src/tests/threads')
-rw-r--r-- | src/tests/threads/gss-perf.c | 4 | ||||
-rw-r--r-- | src/tests/threads/init_ctx.c | 2 | ||||
-rw-r--r-- | src/tests/threads/profread.c | 2 | ||||
-rw-r--r-- | src/tests/threads/t_rcache.c | 2 |
4 files changed, 5 insertions, 5 deletions
diff --git a/src/tests/threads/gss-perf.c b/src/tests/threads/gss-perf.c index f3630c2..0ca6d84 100644 --- a/src/tests/threads/gss-perf.c +++ b/src/tests/threads/gss-perf.c @@ -78,7 +78,7 @@ static void usage (void) __attribute__((noreturn)); static void set_target (char *); static void -usage () +usage (void) { fprintf (stderr, "usage: %s [ options ] service-name\n", prog); fprintf (stderr, " service-name\tGSSAPI host-based service name (e.g., 'host@FQDN')\n"); @@ -249,7 +249,7 @@ do_accept (gss_buffer_desc *msg, int iter) } static gss_buffer_desc -do_init () +do_init (void) { OM_uint32 maj_stat, min_stat; gss_ctx_id_t ctx = GSS_C_NO_CONTEXT; diff --git a/src/tests/threads/init_ctx.c b/src/tests/threads/init_ctx.c index 42619a9..dc3d417 100644 --- a/src/tests/threads/init_ctx.c +++ b/src/tests/threads/init_ctx.c @@ -57,7 +57,7 @@ static int do_pause; static void usage (void) __attribute__((noreturn)); static void -usage () +usage (void) { fprintf (stderr, "usage: %s [ options ]\n", prog); fprintf (stderr, "options:\n"); diff --git a/src/tests/threads/profread.c b/src/tests/threads/profread.c index be28ba4..69bdb05 100644 --- a/src/tests/threads/profread.c +++ b/src/tests/threads/profread.c @@ -59,7 +59,7 @@ static int do_pause; static void usage (void) __attribute__((noreturn)); static void -usage () +usage (void) { fprintf (stderr, "usage: %s [ options ]\n", prog); fprintf (stderr, "options:\n"); diff --git a/src/tests/threads/t_rcache.c b/src/tests/threads/t_rcache.c index 07c45cc..8121429 100644 --- a/src/tests/threads/t_rcache.c +++ b/src/tests/threads/t_rcache.c @@ -51,7 +51,7 @@ int n_threads = DEFAULT_N_THREADS; int interval = DEFAULT_INTERVAL; int *ip; -static void wait_for_tick () +static void wait_for_tick (void) { time_t now, next; now = time(0); |