From patchwork Sun Mar 4 00:36:02 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Samuel Thibault X-Patchwork-Id: 881123 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (mailfrom) smtp.mailfrom=sourceware.org (client-ip=209.132.180.131; helo=sourceware.org; envelope-from=libc-alpha-return-90771-incoming=patchwork.ozlabs.org@sourceware.org; receiver=) Authentication-Results: ozlabs.org; dmarc=none (p=none dis=none) header.from=ens-lyon.org Authentication-Results: ozlabs.org; dkim=pass (1024-bit key; secure) header.d=sourceware.org header.i=@sourceware.org header.b="pL/LyUlN"; dkim-atps=neutral Received: from sourceware.org (server1.sourceware.org [209.132.180.131]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 3zv3xV0CJ4z9sWZ for ; Sun, 4 Mar 2018 11:36:13 +1100 (AEDT) DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:from:to:cc:subject:date:message-id; q=dns; s= default; b=kGWXitN1rWp43V+Z/TwOlXH8JRKz53bnop5aFLrgskYwwE/7tKMFR OpV26zKDGreekKfkMKhd7J201V6vNFZMYJGqekJUwwDBGRV51pwDc+Fgn6qbwCEI iMqV+FzSVSZH6ZrBp1LknkBLcMJAgK27p4w5L/UUlNNwAslnZ52jSo= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:from:to:cc:subject:date:message-id; s=default; bh=nOe4CCibrzvE8JiK0lGPqPEk7Zo=; b=pL/LyUlNIqhgs8bEH5G5Ncqep2hg P00FPW1++OwJtO2JemMpN2XM0Qog/RYSS74vXN5rkDUIjJsEclFGavws/WZJh0ZM /L7YNpuuN36Y7Xux3ZeJjx92VWFHvh3h8gDU+3QWPXyjzbIuiiTEHVKQ4n7bqmeR NmsgS82CJBCAUwE= Received: (qmail 53897 invoked by alias); 4 Mar 2018 00:36:08 -0000 Mailing-List: contact libc-alpha-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: libc-alpha-owner@sourceware.org Delivered-To: mailing list libc-alpha@sourceware.org Received: (qmail 53888 invoked by uid 89); 4 Mar 2018 00:36:07 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-26.1 required=5.0 tests=BAYES_00, GIT_PATCH_0, GIT_PATCH_1, GIT_PATCH_2, GIT_PATCH_3, SPF_HELO_PASS, SPF_NEUTRAL autolearn=ham version=3.3.2 spammy=H*r:sk:static-, Hx-spam-relays-external:sk:static-, H*RU:sk:static- X-HELO: hera.aquilenet.fr From: Samuel Thibault To: libc-alpha@sourceware.org Cc: Samuel Thibault Subject: [hurd,commited] hurd: fix header conformity Date: Sun, 4 Mar 2018 01:36:02 +0100 Message-Id: <20180304003602.5842-1-samuel.thibault@ens-lyon.org> * hurd/hurd/fd.h (_hurd_fd_error): Fix struct initializer to be trivial, for C++ conformity. --- ChangeLog | 2 ++ hurd/hurd/fd.h | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 297af745e2..32270f268f 100644 --- a/ChangeLog +++ b/ChangeLog @@ -14,6 +14,8 @@ * hurd/hurd/port.h: Do not include . * hurd/hurd/userlink.h [!defined __USE_EXTERN_INLINES || !defined _LIBC || !IS_IN (libc)]: Do not include . + * hurd/hurd/fd.h (_hurd_fd_error): Fix struct initializer to be + trivial, for C++ conformity. 2018-03-03 Andreas Schwab diff --git a/hurd/hurd/fd.h b/hurd/hurd/fd.h index 22dc944dce..5d51c11e6a 100644 --- a/hurd/hurd/fd.h +++ b/hurd/hurd/fd.h @@ -179,7 +179,7 @@ _hurd_fd_error (int fd, error_t err) if (signo) { const struct hurd_signal_detail detail - = { code: fd, error: err, exc: 0 }; + = { exc: 0, exc_code: 0, exc_subcode: 0, code: fd, error: err }; _hurd_raise_signal (NULL, signo, &detail); } return err;