Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 24 Apr 2023 15:54:11 GMT
From:      John Baldwin <jhb@FreeBSD.org>
To:        src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org
Subject:   git: 672eba2435ee - main - ppp: Use valid prototypes for function declarations with no arguments.
Message-ID:  <202304241554.33OFsB42099970@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch main has been updated by jhb:

URL: https://cgit.FreeBSD.org/src/commit/?id=672eba2435eef4d20306e439169ed826a07c94bd

commit 672eba2435eef4d20306e439169ed826a07c94bd
Author:     John Baldwin <jhb@FreeBSD.org>
AuthorDate: 2023-04-24 15:53:49 +0000
Commit:     John Baldwin <jhb@FreeBSD.org>
CommitDate: 2023-04-24 15:53:49 +0000

    ppp: Use valid prototypes for function declarations with no arguments.
    
    Reviewed by:    emaste
    Differential Revision:  https://reviews.freebsd.org/D39730
---
 usr.sbin/ppp/bundle.c   | 2 +-
 usr.sbin/ppp/defs.c     | 2 +-
 usr.sbin/ppp/id.c       | 4 ++--
 usr.sbin/ppp/log.c      | 8 ++++----
 usr.sbin/ppp/main.c     | 2 +-
 usr.sbin/ppp/physical.c | 2 +-
 usr.sbin/ppp/probe.c    | 2 +-
 usr.sbin/ppp/sig.c      | 2 +-
 8 files changed, 12 insertions(+), 12 deletions(-)

diff --git a/usr.sbin/ppp/bundle.c b/usr.sbin/ppp/bundle.c
index 1af2924b8d56..91e92cf009bd 100644
--- a/usr.sbin/ppp/bundle.c
+++ b/usr.sbin/ppp/bundle.c
@@ -1354,7 +1354,7 @@ bundle_GetLabel(struct bundle *bundle)
 }
 
 int
-bundle_LinkSize()
+bundle_LinkSize(void)
 {
   struct iovec iov[SCATTER_SEGMENTS];
   int niov, expect, f;
diff --git a/usr.sbin/ppp/defs.c b/usr.sbin/ppp/defs.c
index 7f89ef8b9f9e..627715360ee0 100644
--- a/usr.sbin/ppp/defs.c
+++ b/usr.sbin/ppp/defs.c
@@ -384,7 +384,7 @@ SetTitle(const char *title)
 }
 
 fd_set *
-mkfdset()
+mkfdset(void)
 {
   return (fd_set *)malloc(howmany(getdtablesize(), NFDBITS) * sizeof (fd_mask));
 }
diff --git a/usr.sbin/ppp/id.c b/usr.sbin/ppp/id.c
index 48ea7ce4a7f0..87e70d4eed4d 100644
--- a/usr.sbin/ppp/id.c
+++ b/usr.sbin/ppp/id.c
@@ -61,7 +61,7 @@ static int uid;
 static int euid;
 
 void
-ID0init()
+ID0init(void)
 {
   uid = getuid();
   euid = geteuid();
@@ -77,7 +77,7 @@ ID0setuser(void)
 }
 
 uid_t
-ID0realuid()
+ID0realuid(void)
 {
   return uid;
 }
diff --git a/usr.sbin/ppp/log.c b/usr.sbin/ppp/log.c
index 72f1ca9a9a91..ec689ae14ed7 100644
--- a/usr.sbin/ppp/log.c
+++ b/usr.sbin/ppp/log.c
@@ -83,7 +83,7 @@ struct prompt *log_PromptContext;
 int log_PromptListChanged;
 
 struct prompt *
-log_PromptList()
+log_PromptList(void)
 {
   return promptlist;
 }
@@ -163,7 +163,7 @@ log_DestroyPrompts(struct server *s)
 }
 
 void
-log_DisplayPrompts()
+log_DisplayPrompts(void)
 {
   struct prompt *p;
 
@@ -254,7 +254,7 @@ log_DiscardLocal(int id, u_long *mask)
 }
 
 void
-log_DiscardAll()
+log_DiscardAll(void)
 {
   LogMask = 0;
 }
@@ -306,7 +306,7 @@ log_SetTun(int tunno, const char *ifaceName)
 }
 
 void
-log_Close()
+log_Close(void)
 {
   closelog();
   LogTunno = -1;
diff --git a/usr.sbin/ppp/main.c b/usr.sbin/ppp/main.c
index 3545d4753fcb..6bcb1e443a16 100644
--- a/usr.sbin/ppp/main.c
+++ b/usr.sbin/ppp/main.c
@@ -112,7 +112,7 @@ static struct prompt *SignalPrompt;
 struct libalias *la;
 
 void
-Cleanup()
+Cleanup(void)
 {
   SignalBundle->CleaningUp = 1;
   bundle_Close(SignalBundle, NULL, CLOSE_STAYDOWN);
diff --git a/usr.sbin/ppp/physical.c b/usr.sbin/ppp/physical.c
index 5612c1194e9d..3f7dbc4a7429 100644
--- a/usr.sbin/ppp/physical.c
+++ b/usr.sbin/ppp/physical.c
@@ -646,7 +646,7 @@ iov2physical(struct datalink *dl, struct iovec *iov, int *niov, int maxiov,
 }
 
 unsigned
-physical_MaxDeviceSize()
+physical_MaxDeviceSize(void)
 {
   unsigned biggest, sz, n;
 
diff --git a/usr.sbin/ppp/probe.c b/usr.sbin/ppp/probe.c
index 34e65d03b1ed..74bc4a1cefb2 100644
--- a/usr.sbin/ppp/probe.c
+++ b/usr.sbin/ppp/probe.c
@@ -67,7 +67,7 @@ ipv6_available(void)
 #endif
 
 void
-probe_Init()
+probe_Init(void)
 {
   probe.select_changes_time = select_changes_time() ? 1 : 0;
   log_Printf(LogDEBUG, "Select changes time: %s\n",
diff --git a/usr.sbin/ppp/sig.c b/usr.sbin/ppp/sig.c
index c7b2f469826c..c662d48892d7 100644
--- a/usr.sbin/ppp/sig.c
+++ b/usr.sbin/ppp/sig.c
@@ -94,7 +94,7 @@ sig_signal(int sig, sig_type fn)
  * select() returned due to a signal being recorded by signal_recorder().
  */
 int
-sig_Handle()
+sig_Handle(void)
 {
   int sig;
   int got;



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202304241554.33OFsB42099970>