From owner-svn-src-stable@FreeBSD.ORG Sat Apr 4 20:02:11 2015 Return-Path: Delivered-To: svn-src-stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id C5652EF4; Sat, 4 Apr 2015 20:02:11 +0000 (UTC) Received: from mail-ig0-x233.google.com (mail-ig0-x233.google.com [IPv6:2607:f8b0:4001:c05::233]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 9129C605; Sat, 4 Apr 2015 20:02:11 +0000 (UTC) Received: by igcau2 with SMTP id au2so614253igc.1; Sat, 04 Apr 2015 13:02:10 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:date:message-id:subject :from:to:cc:content-type; bh=lGRi1IenyNOeajBTA/IOyGIdsJl3V3ymrb1iHTScqzU=; b=RaLGwqqtF2Gw9unOvpo5FrKytmnDNXSmNaRw7caw4dQ/FUSgelXj7f8Q0DakrFWuic jY/MThVoKwiFMwKRommXtAOQsjaSy1wbrJ/HhgwsDhbT7tyi5xYl6NxLjZ0ivncHzIsm uBUl7LimMicBsAUuAIGD7hZw+bCbRzED2I2lC8PWIpLeZHADBv8qAujcCa0Iuzmu/Kml YdsmXoo4SVjsZBdPc0wCmNLiKGocl1aE7CJPaakXDMISPRwYw343HVFv+K9dPPu/LXmq gdAcVofJor1fV2zNlmjp8ehzBtO5GJrG7f4XKNLqupC2uD4QpQwlfzmKJ6maK4FNzVq+ iLtw== MIME-Version: 1.0 X-Received: by 10.107.39.72 with SMTP id n69mr11805673ion.8.1428177730515; Sat, 04 Apr 2015 13:02:10 -0700 (PDT) Sender: adrian.chadd@gmail.com Received: by 10.36.17.194 with HTTP; Sat, 4 Apr 2015 13:02:10 -0700 (PDT) In-Reply-To: References: <201503110949.t2B9n7Yk000610@svn.freebsd.org> Date: Sat, 4 Apr 2015 13:02:10 -0700 X-Google-Sender-Auth: 0ViUwT1Vlb4hETmJL573yd-T5sI Message-ID: Subject: Re: svn commit: r279877 - stable/10/sys/boot/fdt From: Adrian Chadd To: Ed Schouten Content-Type: text/plain; charset=UTF-8 Cc: svn-src-stable@freebsd.org, Alexander Motin , "src-committers@freebsd.org" , svn-src-stable-10@freebsd.org, "svn-src-all@freebsd.org" X-BeenThere: svn-src-stable@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: SVN commit messages for all the -stable branches of the src tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 04 Apr 2015 20:02:11 -0000 On 4 April 2015 at 02:17, Ed Schouten wrote: > 2015-04-04 11:16 GMT+02:00 Ed Schouten : >> Couldn't this use calloc() instead? > > Oh, wait. This is the boot loader. The boot loader wouldn't > necessarily have a calloc() function. .. why not? Wouldn't it be worth the code savings to have calloc versus malloc + bzero everywhere? -adrian