From 11af9d24779f4000990938ca92cac2424f63ddb6 Mon Sep 17 00:00:00 2001 From: John Baldwin Date: Tue, 18 Apr 2023 11:27:47 -0700 Subject: [PATCH] telnet: Use C89 function definitions for two stragglers. Reviewed by: emaste Differential Revision: https://reviews.freebsd.org/D39528 --- contrib/telnet/telnet/commands.c | 3 +-- contrib/telnet/telnet/ring.c | 5 ++--- 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/contrib/telnet/telnet/commands.c b/contrib/telnet/telnet/commands.c index 6414a120ea92..dbc06a10b9c6 100644 --- a/contrib/telnet/telnet/commands.c +++ b/contrib/telnet/telnet/commands.c @@ -423,8 +423,7 @@ send_docmd(char *name) } static int -send_dontcmd(name) - char *name; +send_dontcmd(char *name) { return(send_tncmd(send_dont, "dont", name)); } diff --git a/contrib/telnet/telnet/ring.c b/contrib/telnet/telnet/ring.c index efae2e18c1b7..138e3c661045 100644 --- a/contrib/telnet/telnet/ring.c +++ b/contrib/telnet/telnet/ring.c @@ -306,9 +306,8 @@ ring_encrypt(Ring *ring, void (*encryptor)(unsigned char *, int)) ring->clearto = ring->supply; } - void -ring_clearto(ring) - Ring *ring; +void +ring_clearto(Ring *ring) { if (!ring_empty(ring)) ring->clearto = ring->supply;