git: 11af9d24779f - main - telnet: Use C89 function definitions for two stragglers.

From: John Baldwin <jhb_at_FreeBSD.org>
Date: Tue, 18 Apr 2023 18:31:35 UTC
The branch main has been updated by jhb:

URL: https://cgit.FreeBSD.org/src/commit/?id=11af9d24779f4000990938ca92cac2424f63ddb6

commit 11af9d24779f4000990938ca92cac2424f63ddb6
Author:     John Baldwin <jhb@FreeBSD.org>
AuthorDate: 2023-04-18 18:27:47 +0000
Commit:     John Baldwin <jhb@FreeBSD.org>
CommitDate: 2023-04-18 18:27:47 +0000

    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;