Skip to content
Browse files

tip(1): Fix some -Wmissing-parameter-type warnings.

It still needs more cleanup.
  • Loading branch information...
1 parent 22adafb commit bd611623ca3928ff51f2042a65b1aef10a6f023f Sascha Wildner committed
Showing with 8 additions and 8 deletions.
  1. +2 −1 usr.bin/tip/libacu/acucommon.c
  2. +2 −2 usr.bin/tip/libacu/ventel.c
  3. +1 −1 usr.bin/tip/tip/acu.c
  4. +2 −2 usr.bin/tip/tip/cu.c
  5. +1 −2 usr.bin/tip/tip/tip.c
View
3 usr.bin/tip/libacu/acucommon.c
@@ -106,7 +106,8 @@ void acu_nap (unsigned int how_long)
#endif /* HAVE_USLEEP */
-void acu_hw_flow_control (hw_flow_control)
+void
+acu_hw_flow_control(int hw_flow_control)
{
#if HAVE_TERMIOS
struct termios t;
View
4 usr.bin/tip/libacu/ventel.c
@@ -59,7 +59,7 @@ static jmp_buf timeoutbuf;
#define delay(num,denom) busyloop(CPUSPEED*num/denom)
#define CPUSPEED 1000000 /* VAX 780 is 1MIPS */
#define DELAY(n) { long N = (n); while (--N > 0); }
-busyloop(n) { DELAY(n); }
+void busyloop(int n) { DELAY(n); }
ven_dialer(num, acu)
char *num;
@@ -209,7 +209,7 @@ gobble(match, response)
* there are gory ways to simulate this.
*/
static int
-vensync(fd)
+vensync(int fd)
{
int already = 0, nread;
char buf[60];
View
2 usr.bin/tip/tip/acu.c
@@ -181,7 +181,7 @@ disconnect(reason)
}
static void
-acuabort(s)
+acuabort(int s)
{
signal(s, SIG_IGN);
longjmp(jmpbuf, 1);
View
4 usr.bin/tip/tip/cu.c
@@ -44,8 +44,8 @@ void cleanup();
/*
* Botch the interface to look like cu's
*/
-cumain(argc, argv)
- char *argv[];
+int
+cumain(int argc, char *argv[])
{
int i;
static char sbuf[12];
View
3 usr.bin/tip/tip/tip.c
@@ -90,8 +90,7 @@ void user_uid(void);
int speed(int);
int
-main(argc, argv)
- char *argv[];
+main(int argc, char *argv[])
{
char *system = NULL;
int i;

0 comments on commit bd61162

Please sign in to comment.
Something went wrong with that request. Please try again.