summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRalf Baechle <ralf@linux-mips.org>2009-06-14 08:06:06 +0000
committerRalf Baechle <ralf@linux-mips.org>2009-06-14 08:06:06 +0000
commit378a483bd88de4c91e34e0646e90b92cd2d03ec9 (patch)
tree2be26af83bdeff44360c6e7b93477d0e189a96cc
parent5f31bca972deca185371225aed43a0ded1dc73f5 (diff)
Convert K&R-style function definitions to function prototypes.
-rw-r--r--ax25/ax25d.c6
-rw-r--r--ax25/axgetput/axgetput.c8
2 files changed, 7 insertions, 7 deletions
diff --git a/ax25/ax25d.c b/ax25/ax25d.c
index 638a8a9..2bbf388 100644
--- a/ax25/ax25d.c
+++ b/ax25/ax25d.c
@@ -1,5 +1,5 @@
/*
- * $Id: ax25d.c,v 1.5 2007/01/23 13:40:01 ralf Exp $
+ * $Id: ax25d.c,v 1.6 2009/06/14 08:06:06 ralf Exp $
*
* This is my version of axl.c, written for the LBBS code to make it
* compatable with the kernel AX25 driver. It appears to work, with
@@ -218,7 +218,7 @@ static int maxfd = -1;
/*--------------------------------------------------------------------------*/
-void update_maxfd() {
+void update_maxfd(void) {
struct axlist *paxl;
FD_ZERO(&fdread);
@@ -233,7 +233,7 @@ void update_maxfd() {
/*--------------------------------------------------------------------------*/
-void err_config() {
+void err_config(void) {
if (AXL == NULL) {
if (Logging)
syslog(LOG_ERR, "config file reload error, exiting");
diff --git a/ax25/axgetput/axgetput.c b/ax25/axgetput/axgetput.c
index 6a425ca..d0cef19 100644
--- a/ax25/axgetput/axgetput.c
+++ b/ax25/axgetput/axgetput.c
@@ -1,4 +1,4 @@
-static const char rcsid[] = "@(#) $Id: axgetput.c,v 1.2 2007/01/23 13:40:01 ralf Exp $";
+static const char rcsid[] = "@(#) $Id: axgetput.c,v 1.3 2009/06/14 08:06:06 ralf Exp $";
/*
* This is axgetput
@@ -63,7 +63,7 @@ static struct revision revision;
/*---------------------------------------------------------------------------*/
-static void set_tty_flags()
+static void set_tty_flags(void)
{
struct termios termios;
struct stat statbuf;
@@ -94,7 +94,7 @@ static void set_tty_flags()
/*---------------------------------------------------------------------------*/
-static void restore_tty_flags()
+static void restore_tty_flags(void)
{
if (fdin_is_pipe)
return;
@@ -133,7 +133,7 @@ static void eol_convention(int state_should)
/*---------------------------------------------------------------------------*/
-static void restore_defaults()
+static void restore_defaults(void)
{
eol_convention(0);
restore_tty_flags();