summaryrefslogtreecommitdiffstats
path: root/cpukit/pppd/rtemsmain.c
diff options
context:
space:
mode:
authorRalf Corsepius <ralf.corsepius@rtems.org>2008-08-03 04:27:50 +0000
committerRalf Corsepius <ralf.corsepius@rtems.org>2008-08-03 04:27:50 +0000
commitb5cc0592f7cb5a0575836aa8f5630ce0b7b4fbe2 (patch)
tree5a978fdf6f25bdd84838282dc28b91a43c486f9f /cpukit/pppd/rtemsmain.c
parent2008-08-02 Ralf Corsépius <ralf.corsepius@rtems.org> (diff)
downloadrtems-b5cc0592f7cb5a0575836aa8f5630ce0b7b4fbe2.tar.bz2
Add prototypes.
Diffstat (limited to '')
-rw-r--r--cpukit/pppd/rtemsmain.c44
1 files changed, 22 insertions, 22 deletions
diff --git a/cpukit/pppd/rtemsmain.c b/cpukit/pppd/rtemsmain.c
index b301b6cac5..2f0fd6cd85 100644
--- a/cpukit/pppd/rtemsmain.c
+++ b/cpukit/pppd/rtemsmain.c
@@ -557,8 +557,8 @@ struct protocol_list {
* protocol_name - find a name for a PPP protocol.
*/
const char *
-protocol_name(proto)
- int proto;
+protocol_name(
+ int proto)
{
struct protocol_list *lp;
@@ -657,8 +657,8 @@ get_input(void)
* new_phase - signal the start of a new phase of pppd's operation.
*/
void
-new_phase(p)
- int p;
+new_phase(
+ int p)
{
pppd_phase = p;
if (new_phase_hook)
@@ -669,8 +669,8 @@ new_phase(p)
* die - clean up state and exit with the specified status.
*/
void
-die(status)
- int status;
+die(
+ int status)
{
cleanup();
}
@@ -680,7 +680,7 @@ die(status)
*/
/* ARGSUSED */
static void
-cleanup()
+cleanup(void)
{
sys_cleanup();
@@ -696,7 +696,7 @@ cleanup()
* close_tty - restore the terminal device and close it.
*/
static void
-close_tty()
+close_tty(void)
{
/* drop dtr to hang up */
if (!default_device && modem) {
@@ -718,8 +718,8 @@ close_tty()
* update_link_stats - get stats at link termination.
*/
void
-update_link_stats(u)
- int u;
+update_link_stats(
+ int u)
{
struct timeval now;
char numbuf[32];
@@ -752,10 +752,10 @@ static struct timeval timenow; /* Current time */
* the kernel).
*/
void
-ppptimeout(func, arg, time)
- void (*func)(void *);
- void *arg;
- int time;
+ppptimeout(
+ void (*func)(void *),
+ void *arg,
+ int time)
{
struct callout *newp, *p, **pp;
@@ -789,9 +789,9 @@ ppptimeout(func, arg, time)
* untimeout - Unschedule a timeout.
*/
void
-pppuntimeout(func, arg)
- void (*func)(void *);
- void *arg;
+pppuntimeout(
+ void (*func)(void *),
+ void *arg)
{
struct callout **copp, *freep;
@@ -813,7 +813,7 @@ pppuntimeout(func, arg)
* calltimeout - Call any timeout routines which are now due.
*/
static void
-calltimeout()
+calltimeout(void)
{
struct callout *p;
@@ -839,8 +839,8 @@ calltimeout()
* timeleft - return the length of time until the next timeout is due.
*/
static struct timeval *
-timeleft(tvp)
- struct timeval *tvp;
+timeleft(
+ struct timeval *tvp)
{
if (callout == NULL)
return NULL;
@@ -889,8 +889,8 @@ static int device_script(int fd, int mode, char *program)
* novm - log an error message saying we ran out of memory, and die.
*/
void
-novm(msg)
- char *msg;
+novm(
+ char *msg)
{
fatal("Virtual memory exhausted allocating %s\n", msg);
}