const poisoning.
This commit is contained in:
parent
e683da3ba6
commit
b223acf69a
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: stdlib.h,v 1.33 1998/06/01 20:10:15 kleink Exp $ */
|
||||
/* $NetBSD: stdlib.h,v 1.34 1998/07/26 23:03:30 mycroft Exp $ */
|
||||
|
||||
/*-
|
||||
* Copyright (c) 1990, 1993
|
||||
@ -204,16 +204,16 @@ void *alloca __P((size_t));
|
||||
#endif /* __GNUC__ */
|
||||
|
||||
char *getbsize __P((int *, long *));
|
||||
char *cgetcap __P((char *, char *, int));
|
||||
char *cgetcap __P((char *, const char *, int));
|
||||
int cgetclose __P((void));
|
||||
int cgetent __P((char **, char **, char *));
|
||||
int cgetent __P((char **, char **, const char *));
|
||||
int cgetfirst __P((char **, char **));
|
||||
int cgetmatch __P((char *, char *));
|
||||
int cgetmatch __P((const char *, const char *));
|
||||
int cgetnext __P((char **, char **));
|
||||
int cgetnum __P((char *, char *, long *));
|
||||
int cgetset __P((char *));
|
||||
int cgetstr __P((char *, char *, char **));
|
||||
int cgetustr __P((char *, char *, char **));
|
||||
int cgetnum __P((char *, const char *, long *));
|
||||
int cgetset __P((const char *));
|
||||
int cgetstr __P((char *, const char *, char **));
|
||||
int cgetustr __P((char *, const char *, char **));
|
||||
|
||||
int daemon __P((int, int));
|
||||
char *devname __P((dev_t, mode_t));
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: extern.h,v 1.5 1997/10/20 01:07:50 lukem Exp $ */
|
||||
/* $NetBSD: extern.h,v 1.6 1998/07/26 23:09:50 mycroft Exp $ */
|
||||
|
||||
/*-
|
||||
* Copyright (c) 1991, 1993
|
||||
@ -43,10 +43,10 @@ extern struct termios mode, oldmode;
|
||||
extern int columns, isreset, lines;
|
||||
extern int erasechar, intrchar, killchar;
|
||||
|
||||
void add_mapping __P((char *, char *));
|
||||
void add_mapping __P((const char *, char *));
|
||||
void cat __P((char *));
|
||||
char *get_termcap_entry __P((char *, char **));
|
||||
char *mapped __P((char *));
|
||||
const char *get_termcap_entry __P((const char *, char **));
|
||||
const char *mapped __P((const char *));
|
||||
void outc __P((int));
|
||||
void reset_mode __P((void));
|
||||
void set_control_chars __P((void));
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: map.c,v 1.8 1997/10/20 01:07:51 lukem Exp $ */
|
||||
/* $NetBSD: map.c,v 1.9 1998/07/26 23:09:50 mycroft Exp $ */
|
||||
|
||||
/*-
|
||||
* Copyright (c) 1991, 1993
|
||||
@ -38,7 +38,7 @@
|
||||
#if 0
|
||||
static char sccsid[] = "@(#)map.c 8.1 (Berkeley) 6/9/93";
|
||||
#endif
|
||||
__RCSID("$NetBSD: map.c,v 1.8 1997/10/20 01:07:51 lukem Exp $");
|
||||
__RCSID("$NetBSD: map.c,v 1.9 1998/07/26 23:09:50 mycroft Exp $");
|
||||
#endif /* not lint */
|
||||
|
||||
#include <sys/types.h>
|
||||
@ -61,8 +61,8 @@ int baudrate __P((char *));
|
||||
|
||||
typedef struct map {
|
||||
struct map *next; /* Linked list of maps. */
|
||||
char *porttype; /* Port type, or "" for any. */
|
||||
char *type; /* Terminal type to select. */
|
||||
const char *porttype; /* Port type, or "" for any. */
|
||||
const char *type; /* Terminal type to select. */
|
||||
int conditional; /* Baud rate conditionals bitmask. */
|
||||
int speed; /* Baud rate to compare against. */
|
||||
} MAP;
|
||||
@ -76,7 +76,8 @@ MAP *cur, *maplist;
|
||||
*/
|
||||
void
|
||||
add_mapping(port, arg)
|
||||
char *port, *arg;
|
||||
const char *port;
|
||||
char *arg;
|
||||
{
|
||||
MAP *mapp;
|
||||
char *copy, *p, *termp;
|
||||
@ -105,7 +106,7 @@ add_mapping(port, arg)
|
||||
}
|
||||
|
||||
if (arg == mapp->porttype) /* [><@=! baud]:term */
|
||||
termp = mapp->porttype = NULL;
|
||||
mapp->porttype = termp = NULL;
|
||||
else
|
||||
termp = arg;
|
||||
|
||||
@ -188,9 +189,9 @@ badmopt: errx(1, "illegal -m option format: %s", copy);
|
||||
* by the first applicable mapping in 'map'. If no mappings apply, return
|
||||
* 'type'.
|
||||
*/
|
||||
char *
|
||||
const char *
|
||||
mapped(type)
|
||||
char *type;
|
||||
const char *type;
|
||||
{
|
||||
MAP *mapp;
|
||||
int match;
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: term.c,v 1.9 1997/10/20 01:07:53 lukem Exp $ */
|
||||
/* $NetBSD: term.c,v 1.10 1998/07/26 23:09:50 mycroft Exp $ */
|
||||
|
||||
/*-
|
||||
* Copyright (c) 1991, 1993
|
||||
@ -38,7 +38,7 @@
|
||||
#if 0
|
||||
static char sccsid[] = "@(#)term.c 8.1 (Berkeley) 6/9/93";
|
||||
#endif
|
||||
__RCSID("$NetBSD: term.c,v 1.9 1997/10/20 01:07:53 lukem Exp $");
|
||||
__RCSID("$NetBSD: term.c,v 1.10 1998/07/26 23:09:50 mycroft Exp $");
|
||||
#endif /* not lint */
|
||||
|
||||
#include <sys/types.h>
|
||||
@ -54,20 +54,22 @@ __RCSID("$NetBSD: term.c,v 1.9 1997/10/20 01:07:53 lukem Exp $");
|
||||
|
||||
char tbuf[1024]; /* Termcap entry. */
|
||||
|
||||
char *askuser __P((char *));
|
||||
const char *askuser __P((const char *));
|
||||
char *ttys __P((char *));
|
||||
|
||||
/*
|
||||
* Figure out what kind of terminal we're dealing with, and then read in
|
||||
* its termcap entry.
|
||||
*/
|
||||
char *
|
||||
const char *
|
||||
get_termcap_entry(userarg, tcapbufp)
|
||||
char *userarg, **tcapbufp;
|
||||
const char *userarg;
|
||||
char **tcapbufp;
|
||||
{
|
||||
struct ttyent *t;
|
||||
int rval;
|
||||
char *p, *ttype, *ttypath;
|
||||
char *p, *ttypath;
|
||||
const char *ttype;
|
||||
|
||||
if (userarg) {
|
||||
ttype = userarg;
|
||||
@ -128,9 +130,9 @@ found: if ((p = getenv("TERMCAP")) != NULL && *p != '/')
|
||||
}
|
||||
|
||||
/* Prompt the user for a terminal type. */
|
||||
char *
|
||||
const char *
|
||||
askuser(dflt)
|
||||
char *dflt;
|
||||
const char *dflt;
|
||||
{
|
||||
static char answer[256];
|
||||
char *p;
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: tset.c,v 1.6 1997/10/20 01:07:54 lukem Exp $ */
|
||||
/* $NetBSD: tset.c,v 1.7 1998/07/26 23:09:50 mycroft Exp $ */
|
||||
|
||||
/*-
|
||||
* Copyright (c) 1980, 1991, 1993
|
||||
@ -43,7 +43,7 @@ __COPYRIGHT("@(#) Copyright (c) 1980, 1991, 1993\n\
|
||||
#if 0
|
||||
static char sccsid[] = "@(#)tset.c 8.1 (Berkeley) 6/9/93";
|
||||
#endif
|
||||
__RCSID("$NetBSD: tset.c,v 1.6 1997/10/20 01:07:54 lukem Exp $");
|
||||
__RCSID("$NetBSD: tset.c,v 1.7 1998/07/26 23:09:50 mycroft Exp $");
|
||||
#endif /* not lint */
|
||||
|
||||
#include <sys/types.h>
|
||||
@ -81,7 +81,8 @@ main(argc, argv)
|
||||
struct winsize win;
|
||||
#endif
|
||||
int ch, noinit, noset, quiet, Sflag, sflag, showterm, usingupper;
|
||||
char savech, *p, *t, *tcapbuf, *ttype;
|
||||
char savech, *p, *t, *tcapbuf;
|
||||
const char *ttype;
|
||||
|
||||
if (tcgetattr(STDERR_FILENO, &mode) < 0)
|
||||
err(1, "standard error");
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: vacation.c,v 1.14 1998/07/08 00:34:53 cgd Exp $ */
|
||||
/* $NetBSD: vacation.c,v 1.15 1998/07/26 23:11:09 mycroft Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1983, 1987, 1993
|
||||
@ -44,7 +44,7 @@ __COPYRIGHT("@(#) Copyright (c) 1983, 1987, 1993\n\
|
||||
#if 0
|
||||
static char sccsid[] = "@(#)vacation.c 8.2 (Berkeley) 1/26/94";
|
||||
#endif
|
||||
__RCSID("$NetBSD: vacation.c,v 1.14 1998/07/08 00:34:53 cgd Exp $");
|
||||
__RCSID("$NetBSD: vacation.c,v 1.15 1998/07/26 23:11:09 mycroft Exp $");
|
||||
#endif /* not lint */
|
||||
|
||||
/*
|
||||
@ -85,7 +85,7 @@ __RCSID("$NetBSD: vacation.c,v 1.14 1998/07/08 00:34:53 cgd Exp $");
|
||||
|
||||
typedef struct alias {
|
||||
struct alias *next;
|
||||
char *name;
|
||||
const char *name;
|
||||
} ALIAS;
|
||||
ALIAS *names;
|
||||
|
||||
@ -97,7 +97,7 @@ int junkmail __P((void));
|
||||
int nsearch __P((const char *, const char *));
|
||||
void readheaders __P((void));
|
||||
int recent __P((void));
|
||||
void sendmessage __P((char *));
|
||||
void sendmessage __P((const char *));
|
||||
void setinterval __P((time_t));
|
||||
void setreply __P((void));
|
||||
void usage __P((void));
|
||||
@ -400,7 +400,7 @@ setreply()
|
||||
*/
|
||||
void
|
||||
sendmessage(myname)
|
||||
char *myname;
|
||||
const char *myname;
|
||||
{
|
||||
FILE *mfp, *sfp;
|
||||
int i;
|
||||
|
Loading…
Reference in New Issue
Block a user