From owner-svn-src-head@freebsd.org Tue Sep 26 11:11:45 2017 Return-Path: Delivered-To: svn-src-head@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id CB43BE070B8; Tue, 26 Sep 2017 11:11:45 +0000 (UTC) (envelope-from manu@bidouilliste.com) Received: from mail.blih.net (mail.blih.net [212.83.177.182]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "mail.blih.net", Issuer "mail.blih.net" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id BA72E24D0; Tue, 26 Sep 2017 11:11:44 +0000 (UTC) (envelope-from manu@bidouilliste.com) Received: from mail.blih.net (mail.blih.net [212.83.177.182]) by mail.blih.net (OpenSMTPD) with ESMTP id 9f68714d; Tue, 26 Sep 2017 13:11:35 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=bidouilliste.com; h=date :from:to:cc:subject:message-id:in-reply-to:references :mime-version:content-type:content-transfer-encoding; s=mail; bh=H1yjNDjuLiXNJhpOs9RNkwf3jbo=; b=g/ZYirsUta7edfZR8Dy6ZokhOdhd F4s/5SouJuz/r3grTMwENvzM+/wVKl3z8C7CVopH+lQ+92LQz8gmjnqCYQum5W2n ic3IESXBIk8D3OvK7KXX/i6yXvMM4oLl1+/qGf1QaYD8ItRG7HmpOLsRjw4OywWF tDziwXkld5C2y10= DomainKey-Signature: a=rsa-sha1; c=nofws; d=bidouilliste.com; h=date :from:to:cc:subject:message-id:in-reply-to:references :mime-version:content-type:content-transfer-encoding; q=dns; s= mail; b=C9MeahM1m8s3JDzZHws/fVixAZ4shWcRQpze8PyKugufSMwcGJo5xtyh PplQUUxCRe6vV2oee5AQxAMsSGV5hPlrS8c/3km8UQiufdlbKGOPn7cjzWFu5Shz Xycqh811p/8PBqNguU4kis7l/l5wAJuugI2ElH1hHdJ/ZYs/hZk= Received: from arcadia (evadot.gandi.net [217.70.181.36]) by mail.blih.net (OpenSMTPD) with ESMTPSA id 80533fe2 TLS version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO; Tue, 26 Sep 2017 13:11:35 +0200 (CEST) Date: Tue, 26 Sep 2017 13:11:35 +0200 From: Emmanuel Vadot To: Konstantin Belousov Cc: Emmanuel Vadot , src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: Re: svn commit: r324007 - head/usr.sbin/mountd Message-Id: <20170926131135.73b1f216e9448d863f7b48a9@bidouilliste.com> In-Reply-To: <20170926102457.GG2271@kib.kiev.ua> References: <201709260918.v8Q9II14056929@repo.freebsd.org> <20170926102457.GG2271@kib.kiev.ua> X-Mailer: Sylpheed 3.5.1 (GTK+ 2.24.31; amd64-portbld-freebsd12.0) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 26 Sep 2017 11:11:45 -0000 On Tue, 26 Sep 2017 13:24:57 +0300 Konstantin Belousov wrote: > On Tue, Sep 26, 2017 at 09:18:18AM +0000, Emmanuel Vadot wrote: > > @@ -1940,14 +1936,16 @@ add_expdir(struct dirlist **dpp, char *cp, int len) > > { > > struct dirlist *dp; > > > > - dp = (struct dirlist *)malloc(sizeof (struct dirlist) + len); > > + dp = (struct dirlist *)malloc(sizeof (struct dirlist)); > You might remove the unneeded cast as well. Right, done in 324012. Thanks, -- Emmanuel Vadot