From patchwork Fri Feb 24 14:27:43 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jeff Layton X-Patchwork-Id: 9590453 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 5AB0160578 for ; Fri, 24 Feb 2017 14:28:18 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 5AF7E28701 for ; Fri, 24 Feb 2017 14:28:18 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 4FB002876C; Fri, 24 Feb 2017 14:28:18 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.8 required=2.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_HI,T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id D082C2875C for ; Fri, 24 Feb 2017 14:28:17 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751177AbdBXO2R (ORCPT ); Fri, 24 Feb 2017 09:28:17 -0500 Received: from hr2.samba.org ([144.76.82.148]:47284 "EHLO hr2.samba.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751290AbdBXO2Q (ORCPT ); Fri, 24 Feb 2017 09:28:16 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=samba.org; s=42627210; h=Message-Id:Date:Cc:To:From; bh=+7ygykxzUWKJf2++nVfv7q8XHmRdZwo1+dyUrsI/Lxo=; b=HHL+pDYu8P5CLqOz65wiBjTl1R GD+6ZyH3Qk2Bo1Ub2tssTu3kYw7XAzDcNB1axsBLWZgVC4Tn/HytB2xfuFfORZUMbHZKUbfHXoEHR fhKZ5Macno0V82XAhYL7q1rOLMsvLp+iaCoga8zlE6YDquOYHXl2Bx/9ZFc9HaoNWwV8=; Received: from [127.0.0.2] (localhost [127.0.0.1]) by hr2.samba.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim) id 1chGqy-0000FM-UE; Fri, 24 Feb 2017 14:28:13 +0000 From: Jeff Layton To: linux-cifs@vger.kernel.org Cc: cwseys@physics.wisc.edu, ssorce@redhat.com, samba-technical@lists.samba.org Subject: [cifs-utils PATCH 1/8] data_blob: remove need for replace.h Date: Fri, 24 Feb 2017 09:27:43 -0500 Message-Id: <20170224142750.4151-2-jlayton@samba.org> X-Mailer: git-send-email 2.9.3 In-Reply-To: <20170224142750.4151-1-jlayton@samba.org> References: <20170224142750.4151-1-jlayton@samba.org> Sender: linux-cifs-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-cifs@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP We only need ZERO_STRUCT there. Signed-off-by: Jeff Layton --- data_blob.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/data_blob.c b/data_blob.c index 834d810c9d46..a884f132bcde 100644 --- a/data_blob.c +++ b/data_blob.c @@ -20,9 +20,12 @@ #include -#include "replace.h" #include "data_blob.h" +#ifndef ZERO_STRUCT +#define ZERO_STRUCT(x) memset((char *)&(x), 0, sizeof(x)) +#endif + const DATA_BLOB data_blob_null = { NULL, 0 }; /**