From 3986f8a4cffa9a78a9a80fb88c3402509707b06a Mon Sep 17 00:00:00 2001 From: David du Colombier <0intro@gmail.com> Date: Wed, 11 Sep 2002 00:00:00 +0000 Subject: [PATCH] Plan 9 from Bell Labs 2002-09-11 --- port/chan.c | 4 ++-- port/portdat.h | 1 - 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/port/chan.c b/port/chan.c index 9a0f00e27f5144bcc0ccad2cf504b544d46997fe..d74a4d9b98bf9d9b378ced97ff06547f85570323 100644 --- a/port/chan.c +++ b/port/chan.c @@ -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; } diff --git a/port/portdat.h b/port/portdat.h index 406131b2ab3d255fc59eab610eb409cbb74e2965..dd0aefa6c62cd366a41ce518869384270dc5df32 100644 --- a/port/portdat.h +++ b/port/portdat.h @@ -251,7 +251,6 @@ struct Mount struct Mhead { - char fromname[32]; /* temporary for debugging */ Ref; RWlock lock; Chan* from; /* channel mounted upon */