Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/usr.bin/tip Use __dead. Make a bunch of local functions static.
details: https://anonhg.NetBSD.org/src/rev/b1c478a0e877
branches: trunk
changeset: 769334:b1c478a0e877
user: joerg <joerg%NetBSD.org@localhost>
date: Tue Sep 06 18:33:01 2011 +0000
description:
Use __dead. Make a bunch of local functions static.
diffstat:
usr.bin/tip/acu.c | 6 +++---
usr.bin/tip/aculib/hayes.c | 6 +++---
usr.bin/tip/cmds.c | 6 +++---
usr.bin/tip/cu.c | 8 ++++----
usr.bin/tip/hunt.c | 8 ++++----
usr.bin/tip/tip.c | 14 +++++++-------
usr.bin/tip/tip.h | 10 +++++-----
usr.bin/tip/tipout.c | 8 ++++----
8 files changed, 33 insertions(+), 33 deletions(-)
diffs (263 lines):
diff -r 06dc8e80f8e9 -r b1c478a0e877 usr.bin/tip/acu.c
--- a/usr.bin/tip/acu.c Tue Sep 06 18:32:26 2011 +0000
+++ b/usr.bin/tip/acu.c Tue Sep 06 18:33:01 2011 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: acu.c,v 1.15 2006/12/14 17:09:43 christos Exp $ */
+/* $NetBSD: acu.c,v 1.16 2011/09/06 18:33:01 joerg Exp $ */
/*
* Copyright (c) 1983, 1993
@@ -34,7 +34,7 @@
#if 0
static char sccsid[] = "@(#)acu.c 8.1 (Berkeley) 6/6/93";
#endif
-__RCSID("$NetBSD: acu.c,v 1.15 2006/12/14 17:09:43 christos Exp $");
+__RCSID("$NetBSD: acu.c,v 1.16 2011/09/06 18:33:01 joerg Exp $");
#endif /* not lint */
#include "tip.h"
@@ -43,7 +43,7 @@
static int conflag;
static jmp_buf jmpbuf;
-static void acuabort(int);
+__dead static void acuabort(int);
static acu_t *acutype(char *);
/*
diff -r 06dc8e80f8e9 -r b1c478a0e877 usr.bin/tip/aculib/hayes.c
--- a/usr.bin/tip/aculib/hayes.c Tue Sep 06 18:32:26 2011 +0000
+++ b/usr.bin/tip/aculib/hayes.c Tue Sep 06 18:33:01 2011 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: hayes.c,v 1.16 2009/01/18 07:12:39 lukem Exp $ */
+/* $NetBSD: hayes.c,v 1.17 2011/09/06 18:33:01 joerg Exp $ */
/*
* Copyright (c) 1983, 1993
@@ -34,7 +34,7 @@
#if 0
static char sccsid[] = "@(#)hayes.c 8.1 (Berkeley) 6/6/93";
#endif
-__RCSID("$NetBSD: hayes.c,v 1.16 2009/01/18 07:12:39 lukem Exp $");
+__RCSID("$NetBSD: hayes.c,v 1.17 2011/09/06 18:33:01 joerg Exp $");
#endif /* not lint */
/*
@@ -73,7 +73,7 @@
static char gobble(const char *);
static void goodbye(void);
static int hay_sync(void);
-static void sigALRM(int);
+__dead static void sigALRM(int);
int
/*ARGSUSED*/
diff -r 06dc8e80f8e9 -r b1c478a0e877 usr.bin/tip/cmds.c
--- a/usr.bin/tip/cmds.c Tue Sep 06 18:32:26 2011 +0000
+++ b/usr.bin/tip/cmds.c Tue Sep 06 18:33:01 2011 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: cmds.c,v 1.32 2006/12/14 17:09:43 christos Exp $ */
+/* $NetBSD: cmds.c,v 1.33 2011/09/06 18:33:01 joerg Exp $ */
/*
* Copyright (c) 1983, 1993
@@ -34,7 +34,7 @@
#if 0
static char sccsid[] = "@(#)cmds.c 8.1 (Berkeley) 6/6/93";
#endif
-__RCSID("$NetBSD: cmds.c,v 1.32 2006/12/14 17:09:43 christos Exp $");
+__RCSID("$NetBSD: cmds.c,v 1.33 2011/09/06 18:33:01 joerg Exp $");
#endif /* not lint */
#include "tip.h"
@@ -55,7 +55,7 @@
int args(char *, char **);
int anyof(char *, const char *);
void execute(char *);
-void intcopy(int);
+__dead static void intcopy(int);
void prtime(const char *, time_t);
void stopsnd(int);
void transfer(char *, int, const char *);
diff -r 06dc8e80f8e9 -r b1c478a0e877 usr.bin/tip/cu.c
--- a/usr.bin/tip/cu.c Tue Sep 06 18:32:26 2011 +0000
+++ b/usr.bin/tip/cu.c Tue Sep 06 18:33:01 2011 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: cu.c,v 1.20 2006/12/14 17:09:43 christos Exp $ */
+/* $NetBSD: cu.c,v 1.21 2011/09/06 18:33:01 joerg Exp $ */
/*
* Copyright (c) 1983, 1993
@@ -36,13 +36,13 @@
#if 0
static char sccsid[] = "@(#)cu.c 8.1 (Berkeley) 6/6/93";
#endif
-__RCSID("$NetBSD: cu.c,v 1.20 2006/12/14 17:09:43 christos Exp $");
+__RCSID("$NetBSD: cu.c,v 1.21 2011/09/06 18:33:01 joerg Exp $");
#endif /* not lint */
#include "tip.h"
-static void cuhelp(void);
-static void cuusage(void);
+__dead static void cuhelp(void);
+__dead static void cuusage(void);
/*
* Botch the interface to look like cu's
diff -r 06dc8e80f8e9 -r b1c478a0e877 usr.bin/tip/hunt.c
--- a/usr.bin/tip/hunt.c Tue Sep 06 18:32:26 2011 +0000
+++ b/usr.bin/tip/hunt.c Tue Sep 06 18:33:01 2011 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: hunt.c,v 1.17 2011/05/24 12:46:16 joerg Exp $ */
+/* $NetBSD: hunt.c,v 1.18 2011/09/06 18:33:01 joerg Exp $ */
/*
* Copyright (c) 1983, 1993
@@ -34,7 +34,7 @@
#if 0
static char sccsid[] = "@(#)hunt.c 8.1 (Berkeley) 6/6/93";
#endif
-__RCSID("$NetBSD: hunt.c,v 1.17 2011/05/24 12:46:16 joerg Exp $");
+__RCSID("$NetBSD: hunt.c,v 1.18 2011/09/06 18:33:01 joerg Exp $");
#endif /* not lint */
#include "tip.h"
@@ -42,9 +42,9 @@
static jmp_buf deadline;
static int deadfl;
-void dead(int);
+__dead static void dead(int);
-void
+static void
/*ARGSUSED*/
dead(int dummy __unused)
{
diff -r 06dc8e80f8e9 -r b1c478a0e877 usr.bin/tip/tip.c
--- a/usr.bin/tip/tip.c Tue Sep 06 18:32:26 2011 +0000
+++ b/usr.bin/tip/tip.c Tue Sep 06 18:33:01 2011 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: tip.c,v 1.50 2009/01/18 07:12:39 lukem Exp $ */
+/* $NetBSD: tip.c,v 1.51 2011/09/06 18:33:01 joerg Exp $ */
/*
* Copyright (c) 1983, 1993
@@ -42,7 +42,7 @@
#if 0
static char sccsid[] = "@(#)tip.c 8.1 (Berkeley) 6/6/93";
#endif
-__RCSID("$NetBSD: tip.c,v 1.50 2009/01/18 07:12:39 lukem Exp $");
+__RCSID("$NetBSD: tip.c,v 1.51 2011/09/06 18:33:01 joerg Exp $");
#endif /* not lint */
/*
@@ -54,12 +54,12 @@
#include "tip.h"
#include "pathnames.h"
-static void tipusage(void);
+__dead static void tipusage(void);
int escape(void);
int main(int, char **);
-void intprompt(int);
-void tipin(void);
+__dead static void intprompt(int);
+__dead static void tipin(void);
char PNbuf[256]; /* This limits the size of a number */
@@ -320,7 +320,7 @@
/*
* Interrupt service routine during prompting
*/
-void
+static void
/*ARGSUSED*/
intprompt(int dummy __unused)
{
@@ -334,7 +334,7 @@
/*
* ****TIPIN TIPIN****
*/
-void
+static void
tipin(void)
{
char gch, bol = 1;
diff -r 06dc8e80f8e9 -r b1c478a0e877 usr.bin/tip/tip.h
--- a/usr.bin/tip/tip.h Tue Sep 06 18:32:26 2011 +0000
+++ b/usr.bin/tip/tip.h Tue Sep 06 18:33:01 2011 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: tip.h,v 1.31 2010/01/28 14:15:18 mbalmer Exp $ */
+/* $NetBSD: tip.h,v 1.32 2011/09/06 18:33:01 joerg Exp $ */
/*
* Copyright (c) 1989, 1993
@@ -264,7 +264,7 @@
void alrmtimeout(int);
int any(char, const char *);
void chdirectory(char);
-void cleanup(int);
+void cleanup(int) __dead;
const char *tip_connect(void);
void consh(char);
char *ctrl(char);
@@ -273,7 +273,7 @@
void cu_take(char);
void disconnect(const char *);
char *expand(char *);
-void finish(char);
+void finish(char) __dead;
void genbrk(char);
void getfl(char);
char *getremote(char *);
@@ -293,8 +293,8 @@
void shell(char);
void suspend(char);
void tandem(const char *);
-void tipabort(const char *);
-void tipout(void);
+void tipabort(const char *) __dead;
+void tipout(void) __dead;
int ttysetup(speed_t);
void unraw(void);
void variable(char);
diff -r 06dc8e80f8e9 -r b1c478a0e877 usr.bin/tip/tipout.c
--- a/usr.bin/tip/tipout.c Tue Sep 06 18:32:26 2011 +0000
+++ b/usr.bin/tip/tipout.c Tue Sep 06 18:33:01 2011 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: tipout.c,v 1.14 2006/12/14 17:09:43 christos Exp $ */
+/* $NetBSD: tipout.c,v 1.15 2011/09/06 18:33:01 joerg Exp $ */
/*
* Copyright (c) 1983, 1993
@@ -35,7 +35,7 @@
#if 0
static char sccsid[] = "@(#)tipout.c 8.1 (Berkeley) 6/6/93";
#endif
-__RCSID("$NetBSD: tipout.c,v 1.14 2006/12/14 17:09:43 christos Exp $");
+__RCSID("$NetBSD: tipout.c,v 1.15 2011/09/06 18:33:01 joerg Exp $");
#endif /* not lint */
#include "tip.h"
@@ -49,7 +49,7 @@
void intEMT(void);
void intIOT(void);
void intSYS(void);
-void intTERM(int);
+__dead static void intTERM(int);
/*
* TIPOUT wait state routine --
@@ -96,7 +96,7 @@
(void)write(repdes[1], &reply, 1); /* Now coprocess waits for us */
}
-void
+static void
/*ARGSUSED*/
intTERM(int dummy __unused)
{
Home |
Main Index |
Thread Index |
Old Index