Use __dead. Make a bunch of local functions static.

This commit is contained in:
joerg 2011-09-06 18:33:01 +00:00
parent c8b60166de
commit f20d1d233d
8 changed files with 33 additions and 33 deletions

View File

@ -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 acu_t *acu = NULL;
static int conflag;
static jmp_buf jmpbuf;
static void acuabort(int);
__dead static void acuabort(int);
static acu_t *acutype(char *);
/*

View File

@ -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 void error_rep(char);
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*/

View File

@ -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 @@ static char *argv[10]; /* argument vector for take and put */
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 *);

View File

@ -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

View File

@ -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 @@ __RCSID("$NetBSD: hunt.c,v 1.17 2011/05/24 12:46:16 joerg Exp $");
static jmp_buf deadline;
static int deadfl;
void dead(int);
__dead static void dead(int);
void
static void
/*ARGSUSED*/
dead(int dummy __unused)
{

View File

@ -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 @@ __COPYRIGHT("@(#) Copyright (c) 1983, 1993\
#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 @@ __RCSID("$NetBSD: tip.c,v 1.50 2009/01/18 07:12:39 lukem Exp $");
#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 @@ prompt(const char *s, char *volatile p, size_t l)
/*
* Interrupt service routine during prompting
*/
void
static void
/*ARGSUSED*/
intprompt(int dummy __unused)
{
@ -334,7 +334,7 @@ intprompt(int dummy __unused)
/*
* ****TIPIN TIPIN****
*/
void
static void
tipin(void)
{
char gch, bol = 1;

View File

@ -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 @@ extern unsigned char evenpartab[];
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_put(char);
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 setscript(void);
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);

View File

@ -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 @@ __RCSID("$NetBSD: tipout.c,v 1.14 2006/12/14 17:09:43 christos Exp $");
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 @@ intEMT(void)
(void)write(repdes[1], &reply, 1); /* Now coprocess waits for us */
}
void
static void
/*ARGSUSED*/
intTERM(int dummy __unused)
{