~kris/9p

9hist

3986f8a4cffa9a78a9a80fb88c3402509707b06a — David du Colombier 24 years ago 0e6552a
Plan 9 from Bell Labs 2002-09-11
2 files changed, 2 insertions(+), 3 deletions(-)

M port/chan.c
M port/portdat.h
M port/chan.c => port/chan.c +2 -2
@@ 422,19 422,19 @@ Mhead*
newmhead(Chan *from)
{
	Mhead *mh;
	int n;

	mh = smalloc(sizeof(Mhead));
	mh->ref = 1;
	mh->from = from;
	incref(from);

/*
	n = from->name->len;
	if(n >= sizeof(mh->fromname))
		n = sizeof(mh->fromname)-1;
	memmove(mh->fromname, from->name->s, n);
	mh->fromname[n] = 0;

*/
	return mh;
}


M port/portdat.h => port/portdat.h +0 -1
@@ 251,7 251,6 @@ struct Mount

struct Mhead
{
	char	fromname[32];		/* temporary for debugging */
	Ref;
	RWlock	lock;
	Chan*	from;			/* channel mounted upon */