ppp: Use valid prototypes for function declarations with no arguments.

Reviewed by:	emaste
Differential Revision:	https://reviews.freebsd.org/D39730
This commit is contained in:
John Baldwin 2023-04-24 08:53:49 -07:00
parent 4b75b42ddb
commit 672eba2435
8 changed files with 12 additions and 12 deletions

View File

@ -1354,7 +1354,7 @@ bundle_GetLabel(struct bundle *bundle)
} }
int int
bundle_LinkSize() bundle_LinkSize(void)
{ {
struct iovec iov[SCATTER_SEGMENTS]; struct iovec iov[SCATTER_SEGMENTS];
int niov, expect, f; int niov, expect, f;

View File

@ -384,7 +384,7 @@ SetTitle(const char *title)
} }
fd_set * fd_set *
mkfdset() mkfdset(void)
{ {
return (fd_set *)malloc(howmany(getdtablesize(), NFDBITS) * sizeof (fd_mask)); return (fd_set *)malloc(howmany(getdtablesize(), NFDBITS) * sizeof (fd_mask));
} }

View File

@ -61,7 +61,7 @@ static int uid;
static int euid; static int euid;
void void
ID0init() ID0init(void)
{ {
uid = getuid(); uid = getuid();
euid = geteuid(); euid = geteuid();
@ -77,7 +77,7 @@ ID0setuser(void)
} }
uid_t uid_t
ID0realuid() ID0realuid(void)
{ {
return uid; return uid;
} }

View File

@ -83,7 +83,7 @@ struct prompt *log_PromptContext;
int log_PromptListChanged; int log_PromptListChanged;
struct prompt * struct prompt *
log_PromptList() log_PromptList(void)
{ {
return promptlist; return promptlist;
} }
@ -163,7 +163,7 @@ log_DestroyPrompts(struct server *s)
} }
void void
log_DisplayPrompts() log_DisplayPrompts(void)
{ {
struct prompt *p; struct prompt *p;
@ -254,7 +254,7 @@ log_DiscardLocal(int id, u_long *mask)
} }
void void
log_DiscardAll() log_DiscardAll(void)
{ {
LogMask = 0; LogMask = 0;
} }
@ -306,7 +306,7 @@ log_SetTun(int tunno, const char *ifaceName)
} }
void void
log_Close() log_Close(void)
{ {
closelog(); closelog();
LogTunno = -1; LogTunno = -1;

View File

@ -112,7 +112,7 @@ static struct prompt *SignalPrompt;
struct libalias *la; struct libalias *la;
void void
Cleanup() Cleanup(void)
{ {
SignalBundle->CleaningUp = 1; SignalBundle->CleaningUp = 1;
bundle_Close(SignalBundle, NULL, CLOSE_STAYDOWN); bundle_Close(SignalBundle, NULL, CLOSE_STAYDOWN);

View File

@ -646,7 +646,7 @@ iov2physical(struct datalink *dl, struct iovec *iov, int *niov, int maxiov,
} }
unsigned unsigned
physical_MaxDeviceSize() physical_MaxDeviceSize(void)
{ {
unsigned biggest, sz, n; unsigned biggest, sz, n;

View File

@ -67,7 +67,7 @@ ipv6_available(void)
#endif #endif
void void
probe_Init() probe_Init(void)
{ {
probe.select_changes_time = select_changes_time() ? 1 : 0; probe.select_changes_time = select_changes_time() ? 1 : 0;
log_Printf(LogDEBUG, "Select changes time: %s\n", log_Printf(LogDEBUG, "Select changes time: %s\n",

View File

@ -94,7 +94,7 @@ sig_signal(int sig, sig_type fn)
* select() returned due to a signal being recorded by signal_recorder(). * select() returned due to a signal being recorded by signal_recorder().
*/ */
int int
sig_Handle() sig_Handle(void)
{ {
int sig; int sig;
int got; int got;