const poisoning.
This commit is contained in:
parent
e2bebe5d75
commit
a405bce56c
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: get_addrs.c,v 1.4 1997/10/20 00:23:18 lukem Exp $ */
|
||||
/* $NetBSD: get_addrs.c,v 1.5 1998/07/26 22:26:29 mycroft Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1983, 1993
|
||||
@ -38,7 +38,7 @@
|
||||
#if 0
|
||||
static char sccsid[] = "@(#)get_addrs.c 8.1 (Berkeley) 6/6/93";
|
||||
#endif
|
||||
__RCSID("$NetBSD: get_addrs.c,v 1.4 1997/10/20 00:23:18 lukem Exp $");
|
||||
__RCSID("$NetBSD: get_addrs.c,v 1.5 1998/07/26 22:26:29 mycroft Exp $");
|
||||
#endif /* not lint */
|
||||
|
||||
#include "talk.h"
|
||||
@ -49,7 +49,7 @@ __RCSID("$NetBSD: get_addrs.c,v 1.4 1997/10/20 00:23:18 lukem Exp $");
|
||||
|
||||
void
|
||||
get_addrs(my_machine_name, his_machine_name)
|
||||
char *my_machine_name, *his_machine_name;
|
||||
const char *my_machine_name, *his_machine_name;
|
||||
{
|
||||
struct hostent *hp;
|
||||
struct servent *sp;
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: get_names.c,v 1.6 1998/07/06 06:55:40 mrg Exp $ */
|
||||
/* $NetBSD: get_names.c,v 1.7 1998/07/26 22:26:29 mycroft Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1983, 1993
|
||||
@ -38,7 +38,7 @@
|
||||
#if 0
|
||||
static char sccsid[] = "@(#)get_names.c 8.1 (Berkeley) 6/6/93";
|
||||
#endif
|
||||
__RCSID("$NetBSD: get_names.c,v 1.6 1998/07/06 06:55:40 mrg Exp $");
|
||||
__RCSID("$NetBSD: get_names.c,v 1.7 1998/07/26 22:26:29 mycroft Exp $");
|
||||
#endif /* not lint */
|
||||
|
||||
#include "talk.h"
|
||||
@ -57,8 +57,8 @@ get_names(argc, argv)
|
||||
char *argv[];
|
||||
{
|
||||
char hostname[MAXHOSTNAMELEN + 1];
|
||||
char *his_name, *my_name;
|
||||
char *my_machine_name, *his_machine_name;
|
||||
const char *his_name, *my_name;
|
||||
const char *my_machine_name, *his_machine_name;
|
||||
char *his_tty;
|
||||
char *cp;
|
||||
char *names;
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: talk.h,v 1.4 1997/10/20 00:23:32 lukem Exp $ */
|
||||
/* $NetBSD: talk.h,v 1.5 1998/07/26 22:26:29 mycroft Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1983, 1993
|
||||
@ -70,7 +70,7 @@ void ctl_transact __P((struct in_addr, CTL_MSG, int, CTL_RESPONSE *));
|
||||
void display __P((xwin_t *, char *, int));
|
||||
void disp_msg __P((int));
|
||||
void end_msgs __P((void));
|
||||
void get_addrs __P((char *, char *));
|
||||
void get_addrs __P((const char *, const char *));
|
||||
void get_names __P((int, char **));
|
||||
void init_display __P((void));
|
||||
void invite_remote __P((void));
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: commands.c,v 1.23 1998/07/09 18:34:02 msaitoh Exp $ */
|
||||
/* $NetBSD: commands.c,v 1.24 1998/07/26 22:35:48 mycroft Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1988, 1990, 1993
|
||||
@ -38,7 +38,7 @@
|
||||
#if 0
|
||||
static char sccsid[] = "@(#)commands.c 8.4 (Berkeley) 5/30/95";
|
||||
#else
|
||||
__RCSID("$NetBSD: commands.c,v 1.23 1998/07/09 18:34:02 msaitoh Exp $");
|
||||
__RCSID("$NetBSD: commands.c,v 1.24 1998/07/26 22:35:48 mycroft Exp $");
|
||||
#endif
|
||||
#endif /* not lint */
|
||||
|
||||
@ -2146,7 +2146,8 @@ tn(argc, argv)
|
||||
char *srp = 0;
|
||||
unsigned long srlen;
|
||||
#endif
|
||||
char *cmd, *hostp = 0, *portp = 0, *user = 0;
|
||||
char *cmd, *hostp = 0, *portp = 0;
|
||||
const char *user = 0;
|
||||
#ifdef __GNUC__ /* Avoid vfork clobbering */
|
||||
(void) &user;
|
||||
#endif
|
||||
@ -2606,7 +2607,7 @@ static char rcbuf[128];
|
||||
|
||||
void
|
||||
cmdrc(m1, m2)
|
||||
char *m1, *m2;
|
||||
const char *m1, *m2;
|
||||
{
|
||||
register Command *c;
|
||||
FILE *rcfile;
|
||||
@ -2728,7 +2729,7 @@ cmdrc(m1, m2)
|
||||
*/
|
||||
unsigned long
|
||||
sourceroute(arg, cpp, lenp)
|
||||
char *arg;
|
||||
char *arg;
|
||||
char **cpp;
|
||||
unsigned long *lenp;
|
||||
{
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: externs.h,v 1.10 1998/03/04 13:51:57 christos Exp $ */
|
||||
/* $NetBSD: externs.h,v 1.11 1998/07/26 22:35:48 mycroft Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1988, 1990, 1993
|
||||
@ -270,7 +270,7 @@ int auth_cmd P((int, char *[]));
|
||||
int ayt_status P((void));
|
||||
int tn P((int, char *[]));
|
||||
void command P((int, char *, int));
|
||||
void cmdrc P((char *, char *));
|
||||
void cmdrc P((const char *, const char *));
|
||||
unsigned long sourceroute P((char *, char **, unsigned long *));
|
||||
|
||||
/* main.c */
|
||||
@ -342,7 +342,7 @@ void env_opt_end P((int));
|
||||
int telrcv P((void));
|
||||
int rlogin_susp P((void));
|
||||
int Scheduler P((int));
|
||||
void telnet P((char *));
|
||||
void telnet P((const char *));
|
||||
void xmitAO P((void));
|
||||
void xmitEL P((void));
|
||||
void xmitEC P((void));
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: telnet.c,v 1.10 1998/07/06 06:56:06 mrg Exp $ */
|
||||
/* $NetBSD: telnet.c,v 1.11 1998/07/26 22:35:49 mycroft Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1988, 1990, 1993
|
||||
@ -38,7 +38,7 @@
|
||||
#if 0
|
||||
static char sccsid[] = "@(#)telnet.c 8.4 (Berkeley) 5/30/95";
|
||||
#else
|
||||
__RCSID("$NetBSD: telnet.c,v 1.10 1998/07/06 06:56:06 mrg Exp $");
|
||||
__RCSID("$NetBSD: telnet.c,v 1.11 1998/07/26 22:35:49 mycroft Exp $");
|
||||
#endif
|
||||
#endif /* not lint */
|
||||
|
||||
@ -2175,7 +2175,7 @@ Scheduler(block)
|
||||
*/
|
||||
void
|
||||
telnet(user)
|
||||
char *user;
|
||||
const char *user;
|
||||
{
|
||||
sys_telnet_init();
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: log.c,v 1.6 1997/11/22 08:29:59 lukem Exp $ */
|
||||
/* $NetBSD: log.c,v 1.7 1998/07/26 22:27:42 mycroft Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1983, 1993
|
||||
@ -38,7 +38,7 @@
|
||||
#if 0
|
||||
static char sccsid[] = "@(#)log.c 8.1 (Berkeley) 6/6/93";
|
||||
#endif
|
||||
__RCSID("$NetBSD: log.c,v 1.6 1997/11/22 08:29:59 lukem Exp $");
|
||||
__RCSID("$NetBSD: log.c,v 1.7 1998/07/26 22:27:42 mycroft Exp $");
|
||||
#endif /* not lint */
|
||||
|
||||
#include "tip.h"
|
||||
@ -54,7 +54,8 @@ void
|
||||
logent(group, num, acu, message)
|
||||
char *group, *num, *acu, *message;
|
||||
{
|
||||
char *user, *timestamp;
|
||||
const char *user;
|
||||
char *timestamp;
|
||||
struct passwd *pwd;
|
||||
time_t t;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user