Don't use __dead or __pure in user code. They were obfuscations

for gcc >= 2.5 and no-ops for gcc >= 2.6.  Converted to use __dead2
or __pure2 where it wasn't already done, except in math.h where use
of __pure was mostly wrong.
This commit is contained in:
Bruce Evans 1996-09-14 03:00:32 +00:00
parent 09c9a90bfd
commit eaa86f9d7f
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=18286
40 changed files with 152 additions and 154 deletions

View File

@ -47,16 +47,16 @@
#include <sys/cdefs.h>
__BEGIN_DECLS
__dead void err __P((int, const char *, ...)) __dead2;
__dead void verr __P((int, const char *, _BSD_VA_LIST_)) __dead2;
__dead void errx __P((int, const char *, ...)) __dead2;
__dead void verrx __P((int, const char *, _BSD_VA_LIST_)) __dead2;
void warn __P((const char *, ...));
void vwarn __P((const char *, _BSD_VA_LIST_));
void warnx __P((const char *, ...));
void vwarnx __P((const char *, _BSD_VA_LIST_));
void err_set_file __P((void *));
void err_set_exit __P((void (*)__P((int))));
void err __P((int, const char *, ...)) __dead2;
void verr __P((int, const char *, _BSD_VA_LIST_)) __dead2;
void errx __P((int, const char *, ...)) __dead2;
void verrx __P((int, const char *, _BSD_VA_LIST_)) __dead2;
void warn __P((const char *, ...));
void vwarn __P((const char *, _BSD_VA_LIST_));
void warnx __P((const char *, ...));
void vwarnx __P((const char *, _BSD_VA_LIST_));
void err_set_file __P((void *));
void err_set_exit __P((void (*)(int)));
__END_DECLS
#endif /* !_ERR_H_ */

View File

@ -72,61 +72,69 @@
#include <sys/cdefs.h>
/*
* Most of these functions have the side effect of setting errno, except
* in the (broken) BSD libm, so they not declared as __pure2.
*/
__BEGIN_DECLS
__pure double acos __P((double));
__pure double asin __P((double));
__pure double atan __P((double));
__pure double atan2 __P((double, double));
__pure double ceil __P((double));
__pure double cos __P((double));
__pure double cosh __P((double));
__pure double exp __P((double));
__pure double fabs __P((double));
__pure double floor __P((double));
__pure double fmod __P((double, double));
double frexp __P((double, int *));
__pure double ldexp __P((double, int));
__pure double log __P((double));
__pure double log10 __P((double));
double modf __P((double, double *));
__pure double pow __P((double, double));
__pure double sin __P((double));
__pure double sinh __P((double));
__pure double sqrt __P((double));
__pure double tan __P((double));
__pure double tanh __P((double));
double acos __P((double));
double asin __P((double));
double atan __P((double));
double atan2 __P((double, double));
double ceil __P((double));
double cos __P((double));
double cosh __P((double));
double exp __P((double));
double fabs __P((double));
double floor __P((double));
double fmod __P((double, double));
double frexp __P((double, int *)); /* fundamentally !__pure2 */
double ldexp __P((double, int));
double log __P((double));
double log10 __P((double));
double modf __P((double, double *)); /* fundamentally !__pure2 */
double pow __P((double, double));
double sin __P((double));
double sinh __P((double));
double sqrt __P((double));
double tan __P((double));
double tanh __P((double));
/*
* These functions are non-ANSI so they can be "right". The ones that
* don't set errno in [lib]msun are declared as __pure2.
*/
#if !defined(_ANSI_SOURCE) && !defined(_POSIX_SOURCE)
__pure double acosh __P((double));
__pure double asinh __P((double));
__pure double atanh __P((double));
double cabs(); /* we can't describe cabs()'s argument properly */
__pure double cbrt __P((double));
__pure double copysign __P((double, double));
__pure double drem __P((double, double));
__pure double erf __P((double));
__pure double erfc __P((double));
__pure double expm1 __P((double));
__pure int finite __P((double));
__pure double hypot __P((double, double));
double acosh __P((double));
double asinh __P((double));
double atanh __P((double));
double cabs(); /* we can't describe cabs()'s argument properly */
double cbrt __P((double)) __pure2;
double copysign __P((double, double)) __pure2;
double drem __P((double, double));
double erf __P((double));
double erfc __P((double)) __pure2;
double expm1 __P((double)) __pure2;
int finite __P((double)) __pure2;
double hypot __P((double, double));
#if defined(vax) || defined(tahoe)
__pure double infnan __P((int));
double infnan __P((int));
#endif
__pure int isinf __P((double));
__pure int isnan __P((double));
__pure double j0 __P((double));
__pure double j1 __P((double));
__pure double jn __P((int, double));
__pure double lgamma __P((double));
__pure double log1p __P((double));
__pure double logb __P((double));
__pure double rint __P((double));
__pure double scalb __P((double, int));
__pure double y0 __P((double));
__pure double y1 __P((double));
__pure double yn __P((int, double));
int isinf __P((double)) __pure2;
int isnan __P((double)) __pure2;
double j0 __P((double));
double j1 __P((double));
double jn __P((int, double));
double lgamma __P((double));
double log1p __P((double)) __pure2;
double logb __P((double)) __pure2;
double rint __P((double)) __pure2;
double scalb __P((double, int));
double y0 __P((double));
double y1 __P((double));
double yn __P((int, double));
#endif
__END_DECLS
#endif /* _MATH_H_ */
#endif /* !_MATH_H_ */

View File

@ -80,18 +80,15 @@ typedef struct { int _jb[_JBLEN + 1]; } jmp_buf[1];
__BEGIN_DECLS
int setjmp __P((jmp_buf));
__dead
void longjmp __P((jmp_buf, int)) __dead2;
#ifndef _ANSI_SOURCE
int sigsetjmp __P((sigjmp_buf, int));
__dead
void siglongjmp __P((sigjmp_buf, int)) __dead2;
#endif /* not ANSI */
#if !defined(_ANSI_SOURCE) && !defined(_POSIX_SOURCE)
int _setjmp __P((jmp_buf));
__dead
void _longjmp __P((jmp_buf, int)) __dead2;
void longjmperror __P((void));
#endif /* neither ANSI nor POSIX */

View File

@ -80,10 +80,8 @@ extern int __mb_cur_max;
#include <sys/cdefs.h>
__BEGIN_DECLS
__dead void
abort __P((void)) __dead2;
__pure int
abs __P((int)) __pure2;
void abort __P((void)) __dead2;
int abs __P((int)) __pure2;
int atexit __P((void (*)(void)));
double atof __P((const char *));
int atoi __P((const char *));
@ -91,16 +89,12 @@ long atol __P((const char *));
void *bsearch __P((const void *, const void *, size_t,
size_t, int (*)(const void *, const void *)));
void *calloc __P((size_t, size_t));
__pure div_t
div __P((int, int)) __pure2;
__dead void
exit __P((int)) __dead2;
div_t div __P((int, int)) __pure2;
void exit __P((int)) __dead2;
void free __P((void *));
char *getenv __P((const char *));
__pure long
labs __P((long)) __pure2;
__pure ldiv_t
ldiv __P((long, long)) __pure2;
long labs __P((long)) __pure2;
ldiv_t ldiv __P((long, long)) __pure2;
void *malloc __P((size_t));
void qsort __P((void *, size_t, size_t,
int (*)(const void *, const void *)));

View File

@ -49,8 +49,7 @@
#endif
__BEGIN_DECLS
__dead void
_exit __P((int)) __dead2;
void _exit __P((int)) __dead2;
int access __P((const char *, int));
unsigned int alarm __P((unsigned int));
int chdir __P((const char *));
@ -121,8 +120,7 @@ int getgrouplist __P((const char *, int, int *, int *));
long gethostid __P((void));
int gethostname __P((char *, int));
mode_t getmode __P((const void *, mode_t));
__pure int
getpagesize __P((void));
int getpagesize __P((void)) __pure2;
char *getpass __P((const char *));
char *getusershell __P((void));
char *getwd __P((char *)); /* obsoleted by getcwd() */

View File

@ -67,7 +67,7 @@ err_set_exit(void (*ef)(int))
err_exit = ef;
}
__dead void
void
#ifdef __STDC__
err(int eval, const char *fmt, ...)
#else
@ -87,7 +87,7 @@ err(eval, fmt, va_alist)
va_end(ap);
}
__dead void
void
verr(eval, fmt, ap)
int eval;
const char *fmt;
@ -109,7 +109,7 @@ verr(eval, fmt, ap)
exit(eval);
}
__dead void
void
#if __STDC__
errx(int eval, const char *fmt, ...)
#else
@ -129,7 +129,7 @@ errx(eval, fmt, va_alist)
va_end(ap);
}
__dead void
void
verrx(eval, fmt, ap)
int eval;
const char *fmt;

View File

@ -24,7 +24,7 @@
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*
* $Id: collate.c,v 1.4 1995/05/30 05:40:40 rgrimes Exp $
* $Id: collate.c,v 1.5 1995/10/23 20:08:24 ache Exp $
*/
#include <rune.h>
@ -52,7 +52,7 @@ struct __collate_st_chain_pri __collate_chain_pri_table[TABLE_SIZE];
} \
} while(0)
__dead void __collate_err(int ex, const char *f) __dead2;
void __collate_err(int ex, const char *f) __dead2;
int
__collate_load_tables(encoding)
@ -163,7 +163,8 @@ __collate_strdup(s)
return t;
}
__dead void __collate_err(int ex, const char *f)
void
__collate_err(int ex, const char *f)
{
extern char *__progname; /* Program name, from crt0. */
const char *s;

View File

@ -71,7 +71,7 @@ int eval = EX_OK; /* sysexits.h error value. */
void deliver __P((int, char *, int));
void e_to_sys __P((int));
__dead void err __P((const char *, ...));
void err __P((const char *, ...)) __dead2;
void notifybiff __P((char *));
int store __P((char *));
void usage __P((void));

View File

@ -122,7 +122,7 @@ void startnewtape __P((int top));
void trewind __P((void));
void writerec __P((char *dp, int isspcl));
__dead void Exit __P((int status));
void Exit __P((int status)) __dead2;
void dumpabort __P((int signo));
void getfstab __P((void));
@ -207,7 +207,7 @@ extern char *strncpy();
extern char *strcat();
extern time_t time();
extern void endgrent();
extern __dead void exit();
extern void exit();
extern off_t lseek();
extern const char *strerror();
#endif

View File

@ -85,7 +85,7 @@ long blocksperfile; /* output blocks per file */
char *host = NULL; /* remote host (if any) */
static long numarg __P((int, char *, long, long, int *, char ***));
static __dead void missingarg __P((int, char *));
static void missingarg __P((int, char *)) __dead2;
int
main(argc, argv)
@ -507,7 +507,7 @@ numarg(letter, meaning, vmin, vmax, pargc, pargv)
exit(X_ABORT);
}
static __dead void
static void
missingarg(letter, meaning)
int letter;
char *meaning;

View File

@ -648,7 +648,7 @@ dumpabort(signo)
Exit(X_ABORT);
}
__dead void
void
Exit(status)
int status;
{

View File

@ -278,14 +278,14 @@ void catch __P((int));
void catchquit __P((int));
void ckfini __P((void));
int dofix __P((struct inodesc *idesc, char *msg));
__dead void errexit __P((const char *s1, ...)) __dead2;
void errexit __P((const char *s1, ...)) __dead2;
void flush __P((int fd, struct bufarea *bp));
void freeblk __P((daddr_t blkno, long frags));
int ftypeok __P((struct dinode *dp));
void getblk __P((struct bufarea *bp, daddr_t blk, long size));
struct bufarea * getdatablk __P((daddr_t blkno, long size));
void getpathname __P((char *namebuf, ino_t curdir, ino_t ino));
__dead void panic __P((const char *, ...)) __dead2;
void panic __P((const char *, ...)) __dead2;
void pfatal __P((const char *s1, ...));
void pwarn __P((const char *s1, ...));
int reply __P((char *question));

View File

@ -527,7 +527,7 @@ dofix(idesc, msg)
}
/* VARARGS1 */
__dead void
void
errexit(const char *s1, ...)
{
va_list ap;
@ -580,7 +580,7 @@ pwarn(const char *s, ...)
/*
* Stub for routines from kernel.
*/
__dead void
void
#ifdef __STDC__
panic(const char *fmt, ...)
#else

View File

@ -278,14 +278,14 @@ void catch __P((int));
void catchquit __P((int));
void ckfini __P((void));
int dofix __P((struct inodesc *idesc, char *msg));
__dead void errexit __P((const char *s1, ...)) __dead2;
void errexit __P((const char *s1, ...)) __dead2;
void flush __P((int fd, struct bufarea *bp));
void freeblk __P((daddr_t blkno, long frags));
int ftypeok __P((struct dinode *dp));
void getblk __P((struct bufarea *bp, daddr_t blk, long size));
struct bufarea * getdatablk __P((daddr_t blkno, long size));
void getpathname __P((char *namebuf, ino_t curdir, ino_t ino));
__dead void panic __P((const char *, ...)) __dead2;
void panic __P((const char *, ...)) __dead2;
void pfatal __P((const char *s1, ...));
void pwarn __P((const char *s1, ...));
int reply __P((char *question));

View File

@ -527,7 +527,7 @@ dofix(idesc, msg)
}
/* VARARGS1 */
__dead void
void
errexit(const char *s1, ...)
{
va_list ap;
@ -580,7 +580,7 @@ pwarn(const char *s, ...)
/*
* Stub for routines from kernel.
*/
__dead void
void
#ifdef __STDC__
panic(const char *fmt, ...)
#else

View File

@ -278,14 +278,14 @@ void catch __P((int));
void catchquit __P((int));
void ckfini __P((void));
int dofix __P((struct inodesc *idesc, char *msg));
__dead void errexit __P((const char *s1, ...)) __dead2;
void errexit __P((const char *s1, ...)) __dead2;
void flush __P((int fd, struct bufarea *bp));
void freeblk __P((daddr_t blkno, long frags));
int ftypeok __P((struct dinode *dp));
void getblk __P((struct bufarea *bp, daddr_t blk, long size));
struct bufarea * getdatablk __P((daddr_t blkno, long size));
void getpathname __P((char *namebuf, ino_t curdir, ino_t ino));
__dead void panic __P((const char *, ...)) __dead2;
void panic __P((const char *, ...)) __dead2;
void pfatal __P((const char *s1, ...));
void pwarn __P((const char *s1, ...));
int reply __P((char *question));

View File

@ -527,7 +527,7 @@ dofix(idesc, msg)
}
/* VARARGS1 */
__dead void
void
errexit(const char *s1, ...)
{
va_list ap;
@ -580,7 +580,7 @@ pwarn(const char *s, ...)
/*
* Stub for routines from kernel.
*/
__dead void
void
#ifdef __STDC__
panic(const char *fmt, ...)
#else

View File

@ -30,7 +30,7 @@
#ifndef lint
static const char rcsid[] =
"$Id: mount_msdos.c,v 1.3 1994/11/01 23:51:42 wollman Exp $";
"$Id: mount_msdos.c,v 1.4 1996/05/13 17:56:34 wollman Exp $";
#endif /* not lint */
#include <sys/cdefs.h>
@ -58,7 +58,7 @@ static struct mntopt mopts[] = {
static gid_t a_gid __P((char *));
static uid_t a_uid __P((char *));
static mode_t a_mask __P((char *));
static __dead void usage __P((void)) __dead2;
static void usage __P((void)) __dead2;
int
main(argc, argv)

View File

@ -42,7 +42,7 @@ static char copyright[] =
static char sccsid[] = "@(#)mount_lfs.c 8.3 (Berkeley) 3/27/94";
*/
static const char rcsid[] =
"$Id$";
"$Id: mount_ext2fs.c,v 1.3 1996/07/23 19:29:27 peter Exp $";
#endif /* not lint */
#include <sys/param.h>
@ -63,7 +63,7 @@ struct mntopt mopts[] = {
{ NULL }
};
static __dead void usage __P((void)) __dead2;
static void usage __P((void)) __dead2;
int
main(argc, argv)

View File

@ -42,7 +42,7 @@ static char copyright[] =
static char sccsid[] = "@(#)mount_lfs.c 8.3 (Berkeley) 3/27/94";
*/
static const char rcsid[] =
"$Id$";
"$Id: mount_lfs.c,v 1.4 1996/05/13 17:43:05 wollman Exp $";
#endif /* not lint */
#include <sys/param.h>
@ -64,7 +64,7 @@ static struct mntopt mopts[] = {
{ NULL }
};
static __dead void usage __P((void)) __dead2;
static void usage __P((void)) __dead2;
static void invoke_cleaner __P((char *, int, int));
int

View File

@ -30,7 +30,7 @@
#ifndef lint
static const char rcsid[] =
"$Id: mount_msdos.c,v 1.3 1994/11/01 23:51:42 wollman Exp $";
"$Id: mount_msdos.c,v 1.4 1996/05/13 17:56:34 wollman Exp $";
#endif /* not lint */
#include <sys/cdefs.h>
@ -58,7 +58,7 @@ static struct mntopt mopts[] = {
static gid_t a_gid __P((char *));
static uid_t a_uid __P((char *));
static mode_t a_mask __P((char *));
static __dead void usage __P((void)) __dead2;
static void usage __P((void)) __dead2;
int
main(argc, argv)

View File

@ -30,7 +30,7 @@
#ifndef lint
static const char rcsid[] =
"$Id: mount_msdos.c,v 1.3 1994/11/01 23:51:42 wollman Exp $";
"$Id: mount_msdos.c,v 1.4 1996/05/13 17:56:34 wollman Exp $";
#endif /* not lint */
#include <sys/cdefs.h>
@ -58,7 +58,7 @@ static struct mntopt mopts[] = {
static gid_t a_gid __P((char *));
static uid_t a_uid __P((char *));
static mode_t a_mask __P((char *));
static __dead void usage __P((void)) __dead2;
static void usage __P((void)) __dead2;
int
main(argc, argv)

View File

@ -45,7 +45,7 @@ static char copyright[] =
static char sccsid[] = "@(#)mount_nfs.c 8.3 (Berkeley) 3/27/94";
*/
static const char rcsid[] =
"$Id$";
"$Id: mount_nfs.c,v 1.13 1996/05/13 17:43:06 wollman Exp $";
#endif /* not lint */
#include <sys/param.h>
@ -196,7 +196,7 @@ int getnfsargs __P((char *, struct nfs_args *));
struct iso_addr *iso_addr __P((const char *));
#endif
void set_rpc_maxgrouplist __P((int));
__dead void usage __P((void));
void usage __P((void)) __dead2;
int xdr_dir __P((XDR *, char *));
int xdr_fh __P((XDR *, struct nfhret *));
@ -776,7 +776,7 @@ xdr_fh(xdrsp, np)
return (0);
}
__dead void
void
usage()
{
(void)fprintf(stderr, "\

View File

@ -45,7 +45,7 @@ char copyright[] =
static char sccsid[] = "@(#)mount_null.c 8.5 (Berkeley) 3/27/94";
*/
static const char rcsid[] =
"$Id$";
"$Id: mount_null.c,v 1.4 1996/05/13 17:43:08 wollman Exp $";
#endif /* not lint */
#include <sys/param.h>
@ -67,7 +67,7 @@ struct mntopt mopts[] = {
};
int subdir __P((const char *, const char *));
static __dead void usage __P((void)) __dead2;
static void usage __P((void)) __dead2;
int
main(argc, argv)

View File

@ -45,7 +45,7 @@ char copyright[] =
static char sccsid[] = "@(#)mount_null.c 8.5 (Berkeley) 3/27/94";
*/
static const char rcsid[] =
"$Id$";
"$Id: mount_null.c,v 1.4 1996/05/13 17:43:08 wollman Exp $";
#endif /* not lint */
#include <sys/param.h>
@ -67,7 +67,7 @@ struct mntopt mopts[] = {
};
int subdir __P((const char *, const char *));
static __dead void usage __P((void)) __dead2;
static void usage __P((void)) __dead2;
int
main(argc, argv)

View File

@ -45,7 +45,7 @@ char copyright[] =
static char sccsid[] = "@(#)mount_portal.c 8.4 (Berkeley) 3/27/94";
*/
static const char rcsid[] =
"$Id$";
"$Id: mount_portal.c,v 1.6 1996/05/13 17:43:09 wollman Exp $";
#endif /* not lint */
#include <sys/param.h>
@ -74,7 +74,7 @@ struct mntopt mopts[] = {
{ NULL }
};
static __dead void usage __P((void)) __dead2;
static void usage __P((void)) __dead2;
static sig_atomic_t readcf; /* Set when SIGHUP received */

View File

@ -45,7 +45,7 @@ char copyright[] =
static char sccsid[] = "@(#)mount_portal.c 8.4 (Berkeley) 3/27/94";
*/
static const char rcsid[] =
"$Id$";
"$Id: mount_portal.c,v 1.6 1996/05/13 17:43:09 wollman Exp $";
#endif /* not lint */
#include <sys/param.h>
@ -74,7 +74,7 @@ struct mntopt mopts[] = {
{ NULL }
};
static __dead void usage __P((void)) __dead2;
static void usage __P((void)) __dead2;
static sig_atomic_t readcf; /* Set when SIGHUP received */

View File

@ -43,7 +43,7 @@ char copyright[] =
#ifndef lint
static const char rcsid[] =
"$Id: mount_std.c,v 1.1 1996/05/13 17:43:16 wollman Exp $";
"$Id: mount_std.c,v 1.2 1996/05/14 15:16:49 wollman Exp $";
#endif /* not lint */
#include <sys/param.h>
@ -63,7 +63,7 @@ static struct mntopt mopts[] = {
{ NULL }
};
static __dead void usage __P((void)) __dead2;
static void usage __P((void)) __dead2;
static const char *fsname;
int

View File

@ -45,7 +45,7 @@ char copyright[] =
static char sccsid[] = "@(#)mount_umap.c 8.3 (Berkeley) 3/27/94";
*/
static const char rcsid[] =
"$Id$";
"$Id: mount_umap.c,v 1.6 1996/05/13 17:43:18 wollman Exp $";
#endif /* not lint */
#include <sys/param.h>
@ -86,7 +86,7 @@ static struct mntopt mopts[] = {
{ NULL }
};
static __dead void usage __P((void)) __dead2;
static void usage __P((void)) __dead2;
int
main(argc, argv)

View File

@ -45,7 +45,7 @@ char copyright[] =
static char sccsid[] = "@(#)mount_umap.c 8.3 (Berkeley) 3/27/94";
*/
static const char rcsid[] =
"$Id$";
"$Id: mount_umap.c,v 1.6 1996/05/13 17:43:18 wollman Exp $";
#endif /* not lint */
#include <sys/param.h>
@ -86,7 +86,7 @@ static struct mntopt mopts[] = {
{ NULL }
};
static __dead void usage __P((void)) __dead2;
static void usage __P((void)) __dead2;
int
main(argc, argv)

View File

@ -64,7 +64,7 @@ static struct mntopt mopts[] = {
};
static int subdir __P((const char *, const char *));
static __dead void usage __P((void)) __dead2;
static void usage __P((void)) __dead2;
int
main(argc, argv)

View File

@ -64,7 +64,7 @@ static struct mntopt mopts[] = {
};
static int subdir __P((const char *, const char *));
static __dead void usage __P((void)) __dead2;
static void usage __P((void)) __dead2;
int
main(argc, argv)

View File

@ -737,7 +737,7 @@ inotablookup(ino)
/*
* Clean up and exit
*/
__dead void
void
done(exitcode)
int exitcode;
{

View File

@ -45,7 +45,7 @@ void createlinks __P((void));
long deletefile __P((char *, ino_t, int));
void deleteino __P((ino_t));
ino_t dirlookup __P((const char *));
__dead void done __P((int));
void done __P((int)) __dead2;
void dumpsymtable __P((char *, long));
void extractdirs __P((int));
int extractfile __P((char *));

View File

@ -43,7 +43,7 @@ static const char copyright[] =
static char sccsid[] = "@(#)route.c 8.3 (Berkeley) 3/19/94";
*/
static const char rcsid[] =
"$Id: route.c,v 1.13 1996/08/13 22:20:20 julian Exp $";
"$Id: route.c,v 1.14 1996/08/19 18:52:49 julian Exp $";
#endif /* not lint */
#include <sys/param.h>
@ -125,9 +125,9 @@ extern char *inet_ntoa(), *iso_ntoa(), *link_ntoa();
extern int ccitt_addr __P((char *, struct sockaddr_x25 *));
#endif
__dead void usage __P((const char *)) __dead2;
void usage __P((const char *)) __dead2;
__dead void
void
usage(cp)
const char *cp;
{

View File

@ -117,8 +117,8 @@ struct winsize winsize;
void catch_child __P((int));
void copytochild __P((int));
__dead void doit __P((long));
__dead void done __P((int));
void doit __P((long)) __dead2;
void done __P((int)) __dead2;
void echo __P((char));
u_int getescape __P((char *));
void lostpeer __P((int));
@ -130,7 +130,7 @@ void sendwindow __P((void));
void setsignal __P((int));
void sigwinch __P((int));
void stop __P((char));
__dead void usage __P((void));
void usage __P((void)) __dead2;
void writer __P((void));
void writeroob __P((int));
@ -428,7 +428,7 @@ setsignal(sig)
(void)sigsetmask(omask);
}
__dead void
void
done(status)
int status;
{
@ -889,7 +889,7 @@ warning(fmt, va_alist)
}
#endif
__dead void
void
usage()
{
(void)fprintf(stderr,

View File

@ -65,13 +65,13 @@ char *fname;
struct termios tt;
__dead void done __P((void));
void dooutput __P((void));
void doshell __P((void));
void err __P((const char *, ...));
void fail __P((void));
void finish __P((int));
void scriptflush __P((int));
void done __P((void)) __dead2;
void dooutput __P((void));
void doshell __P((void));
void err __P((const char *, ...));
void fail __P((void));
void finish __P((int));
void scriptflush __P((int));
int
main(argc, argv)

View File

@ -97,7 +97,7 @@ void settrace __P((int, char **));
void setverbose __P((int, char **));
void status __P((int, char **));
static __dead void command __P((void));
static void command __P((void)) __dead2;
static void getusage __P((char *));
static void makeargv __P((void));
@ -589,7 +589,7 @@ tail(filename)
/*
* Command parser.
*/
static __dead void
static void
command()
{
register struct cmd *c;

View File

@ -333,7 +333,7 @@ err: rval = 1;
return (rval);
}
__dead void
void
usage()
{
(void)fprintf(stderr,

View File

@ -45,7 +45,7 @@ char copyright[] =
static char sccsid[] = "@(#)mount_portal.c 8.4 (Berkeley) 3/27/94";
*/
static const char rcsid[] =
"$Id$";
"$Id: mount_portal.c,v 1.6 1996/05/13 17:43:09 wollman Exp $";
#endif /* not lint */
#include <sys/param.h>
@ -74,7 +74,7 @@ struct mntopt mopts[] = {
{ NULL }
};
static __dead void usage __P((void)) __dead2;
static void usage __P((void)) __dead2;
static sig_atomic_t readcf; /* Set when SIGHUP received */