diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 2006-03-16 19:32:47 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 2006-03-16 19:32:47 +0000 |
commit | a397a40b7c93265cb2ed617a6612f3db999b591c (patch) | |
tree | 496d239526cc99d20c475362d2152ebe207d005c /usr.bin/tip/cu.c | |
parent | e50a27ad82d19d68cc60eda00477acb2b2b7a5f3 (diff) |
first pass of cleanup of this mess; ok dhill
Diffstat (limited to 'usr.bin/tip/cu.c')
-rw-r--r-- | usr.bin/tip/cu.c | 14 |
1 files changed, 6 insertions, 8 deletions
diff --git a/usr.bin/tip/cu.c b/usr.bin/tip/cu.c index aa8bd8f314e..15ef76b3b39 100644 --- a/usr.bin/tip/cu.c +++ b/usr.bin/tip/cu.c @@ -1,4 +1,4 @@ -/* $OpenBSD: cu.c,v 1.16 2004/11/07 09:48:08 otto Exp $ */ +/* $OpenBSD: cu.c,v 1.17 2006/03/16 19:32:46 deraadt Exp $ */ /* $NetBSD: cu.c,v 1.5 1997/02/11 09:24:05 mrg Exp $ */ /* @@ -34,7 +34,7 @@ #if 0 static char sccsid[] = "@(#)cu.c 8.1 (Berkeley) 6/6/93"; #endif -static const char rcsid[] = "$OpenBSD: cu.c,v 1.16 2004/11/07 09:48:08 otto Exp $"; +static const char rcsid[] = "$OpenBSD: cu.c,v 1.17 2006/03/16 19:32:46 deraadt Exp $"; #endif /* not lint */ #include "tip.h" @@ -46,9 +46,7 @@ void cuusage(); * Botch the interface to look like cu's */ void -cumain(argc, argv) - int argc; - char *argv[]; +cumain(int argc, char *argv[]) { int ch, i, parity; long l; @@ -61,7 +59,7 @@ cumain(argc, argv) BR = DEFBR; parity = 0; /* none */ while ((ch = getopt(argc, argv, "a:l:s:htoe0123456789")) != -1) { - switch(ch) { + switch (ch) { case 'a': CU = optarg; break; @@ -174,7 +172,7 @@ cumain(argc, argv) (void)uu_unlock(uucplock); exit(3); } - if (connect()) { + if (con()) { printf("Connect failed\n"); daemon_uid(); (void)uu_unlock(uucplock); @@ -190,7 +188,7 @@ cumain(argc, argv) } void -cuusage() +cuusage(void) { fprintf(stderr, "usage: cu [-ehot] [-a acu] [-l line] [-s speed] [-#] " "[phone-number]\n"); |