From owner-svn-src-all@freebsd.org Thu Aug 9 12:52:09 2018 Return-Path: Delivered-To: svn-src-all@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id BDD29106559F; Thu, 9 Aug 2018 12:52:09 +0000 (UTC) (envelope-from bjkfbsd@gmail.com) Received: from mail-oi0-x22f.google.com (mail-oi0-x22f.google.com [IPv6:2607:f8b0:4003:c06::22f]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4EEE671C0F; Thu, 9 Aug 2018 12:52:09 +0000 (UTC) (envelope-from bjkfbsd@gmail.com) Received: by mail-oi0-x22f.google.com with SMTP id n21-v6so9604463oig.3; Thu, 09 Aug 2018 05:52:09 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=NxWnRG1i2yBHYyTcVioHmlIZjeKJLVg6Gbo66oSVX18=; b=ZwpqejW9lSZZCp7HjW80QF52FIfrkl1aJUQy96+uUdEPMM6U5mghfellJaDvEg22Ec 2zYljW8pBV66arnHcuf5ikSOiCgdcFuUmljsLdg++bDe0GFqlTrPOsrzxhzXmQBhfHoh 8oXXWT5+VvFCXfynoE2OhkxT7C2mAivDO+XESxX2NxifUZLNL+cPAuxTTGiV0I107yc6 Ni5F37X0qJ44XnlMHygtKDpwXI7V2MkDPiq/nxzSgKMKJr7ZvO5hm5XCOX1JJSrV8NZY U85vla8rB7iSaE6beI61wYAtb2l4OzjC+3vAoDfRpvY2a/d5aUWkODVzPBMTCHHG9AaC mXtw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=NxWnRG1i2yBHYyTcVioHmlIZjeKJLVg6Gbo66oSVX18=; b=N5VKQ0F+sAvDG2A+G4KBV9jRuTKuZ5AchbZf6H/FJRrKKXk8B73tTAA8MJTVAjiiJS WGhFSwjB1ejDjsnnvmHJkIDgspT9LHvb0/6FM3JF/juuIqV/xDwWqig0iZVDlqDAMkzW KK/sKG8nKO1yLJojic4wDOn21yck209d6JLG0GA+VJgZw8ziZSRfYQrSLBRECz2PJUPW OvUN5TzZaWWYmlqsL3ng7FQkynPJp5nN2oIs6vv7t+2ky31K2OkcRqAO854RKIwmorHB i9YLzIEedBm857Rn+VRl3Y7aRfge1z7X5ykRsttzzYuLBeMXT/FxmNkqBB3Bux3/B5S3 iKTA== X-Gm-Message-State: AOUpUlEUMhty+GFL6rpNtBedRskNH/L0IAFPiUzoG6+6BSjDXg+d+SI6 eI/mpQFhL7q9y8U6ibY3jY+ECOVyZXC3axVvrZBuvgRSzUg= X-Google-Smtp-Source: AA+uWPzbM4aUbVcfqCDT1pY29MT6uYewE6nMjqRjg3oZdknxjD8jwmOW6LtSpVAlUkkBSWICGcFv/NzQRsUGGvAoQW0= X-Received: by 2002:aca:6142:: with SMTP id v63-v6mr2139975oib.137.1533819128548; Thu, 09 Aug 2018 05:52:08 -0700 (PDT) MIME-Version: 1.0 Received: by 2002:a9d:3bb6:0:0:0:0:0 with HTTP; Thu, 9 Aug 2018 05:52:08 -0700 (PDT) In-Reply-To: <201808091217.w79CH3gO096411@repo.freebsd.org> References: <201808091217.w79CH3gO096411@repo.freebsd.org> From: Benjamin Kaduk Date: Thu, 9 Aug 2018 07:52:08 -0500 Message-ID: Subject: Re: svn commit: r337535 - head/sbin/init To: Edward Tomasz Napierala Cc: src-committers , svn-src-all@freebsd.org, svn-src-head@freebsd.org Content-Type: text/plain; charset="UTF-8" X-Content-Filtered-By: Mailman/MimeDel 2.1.27 X-BeenThere: svn-src-all@freebsd.org X-Mailman-Version: 2.1.27 Precedence: list List-Id: "SVN commit messages for the entire src tree \(except for " user" and " projects" \)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 09 Aug 2018 12:52:10 -0000 On Thu, Aug 9, 2018 at 7:17 AM, Edward Tomasz Napierala wrote: > Author: trasz > Date: Thu Aug 9 12:17:03 2018 > New Revision: 337535 > URL: https://svnweb.freebsd.org/changeset/base/337535 > > Log: > Use NULLs instead of casted zeroes, for consistency. > It's probably helpful to note explicitly that these are not in arguments to varargs functions, in which case the explicit cast is needed in order to produce a program that will have correct behavior on all compliant compilers/systems. (We do define NULL to be a zero-with-cast, but programs should not assume that NULL will be of pointer type -- "An integer constant expression with the value 0, or such an expression cast to type void *, is called a null pointer constant".) -Ben