Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id ; Tue, 25 Jun 2002 05:24:28 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id ; Tue, 25 Jun 2002 05:24:27 -0400 Received: from smtp-in.sc5.paypal.com ([216.136.155.8]:3465 "EHLO smtp-in.sc5.paypal.com") by vger.kernel.org with ESMTP id ; Tue, 25 Jun 2002 05:24:26 -0400 Date: Tue, 25 Jun 2002 02:24:21 -0700 From: Brad Heilbrun To: Thunder from the hill Cc: Linux Kernel Mailing List Subject: Re: [Q] change_parent() - would this work? Message-ID: <20020625092421.GA20315@paypal.com> Mail-Followup-To: Thunder from the hill , Linux Kernel Mailing List References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.3.27i Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 708 Lines: 25 On Sat, Jun 22, 2002 at 04:36:53AM -0600, Thunder from the hill wrote: > Hi, > > My question is: would this work? I don't believe so... > +#define change_parent(p) list_move_tail(&(p)->sibling,&(parent)->children) On the above line change_parent takes one argument. > + change_parent(p, p->parent); Here, it takes two. Otherwise it looks good, and removes a couple of assignments. Not sure how useful it is though, is this done a lot? -- Brad Heilbrun - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/