Change struct emul's "char e_name[8]" field to "const char *e_name"

to allow for emulation names >= 8 characters.
This commit is contained in:
scw 2000-12-19 22:08:36 +00:00
parent 606508da77
commit 96698d967e
2 changed files with 5 additions and 5 deletions

View File

@ -1,4 +1,4 @@
/* $NetBSD: kern_ktrace.c,v 1.49 2000/12/11 19:53:06 martin Exp $ */
/* $NetBSD: kern_ktrace.c,v 1.50 2000/12/19 22:08:36 scw Exp $ */
/*
* Copyright (c) 1989, 1993
@ -172,12 +172,12 @@ void
ktremul(struct proc *p)
{
struct ktr_header kth;
char *emul = p->p_emul->e_name;
const char *emul = p->p_emul->e_name;
p->p_traceflag |= KTRFAC_ACTIVE;
ktrinitheader(&kth, p, KTR_EMUL);
kth.ktr_len = strlen(emul);
kth.ktr_buf = emul;
kth.ktr_buf = (caddr_t)emul;
(void) ktrwrite(p, &kth);
p->p_traceflag &= ~KTRFAC_ACTIVE;

View File

@ -1,4 +1,4 @@
/* $NetBSD: proc.h,v 1.116 2000/12/11 05:29:03 mycroft Exp $ */
/* $NetBSD: proc.h,v 1.117 2000/12/19 22:08:36 scw Exp $ */
/*-
* Copyright (c) 1986, 1989, 1991, 1993
@ -85,7 +85,7 @@ struct exec_package;
struct ps_strings;
struct emul {
char e_name[8]; /* Symbolic name */
const char *e_name; /* Symbolic name */
const char *e_path; /* Extra emulation path (NULL if none)*/
#ifndef __HAVE_MINIMAL_EMUL
int e_flags; /* Miscellaneous flags */