From patchwork Wed Jun 21 21:34:30 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Cristian_Rodr=C3=ADguez?= X-Patchwork-Id: 1798124 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=sourceware.org (client-ip=8.43.85.97; helo=sourceware.org; envelope-from=libc-alpha-bounces+incoming=patchwork.ozlabs.org@sourceware.org; receiver=) Authentication-Results: legolas.ozlabs.org; dkim=pass (1024-bit key; secure) header.d=sourceware.org header.i=@sourceware.org header.a=rsa-sha256 header.s=default header.b=mi0Z1zOQ; dkim-atps=neutral Received: from sourceware.org (ip-8-43-85-97.sourceware.org [8.43.85.97]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-384) server-digest SHA384) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4QmcH91RxRz20Xk for ; Thu, 22 Jun 2023 07:35:17 +1000 (AEST) Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 2E99F3858284 for ; Wed, 21 Jun 2023 21:35:15 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 2E99F3858284 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1687383315; bh=IQZvOpEeKNScoEy8zfDwI+NiQwDB6XBtYcFL8u/zWdU=; h=To:Cc:Subject:Date:List-Id:List-Unsubscribe:List-Archive: List-Post:List-Help:List-Subscribe:From:Reply-To:From; b=mi0Z1zOQCTaBmcHArzsQGTHgMT6VjOkioRtv7ZjV2QyYERBLQqqE3IgvPyrve0jFl a9joagmoS5u/HlMbRk4+Z2DMzyJYnlKK8MD/IcXsMuD7fodum5eNqiY4tLkP7NBiPX 5qnF3EDPyA4MlIRQr01FW0UjNuxLMEEoEyNrd/sQ= X-Original-To: libc-alpha@sourceware.org Delivered-To: libc-alpha@sourceware.org Received: from mail-oi1-x236.google.com (mail-oi1-x236.google.com [IPv6:2607:f8b0:4864:20::236]) by sourceware.org (Postfix) with ESMTPS id 5CA6B3858D28 for ; Wed, 21 Jun 2023 21:35:00 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 5CA6B3858D28 Received: by mail-oi1-x236.google.com with SMTP id 5614622812f47-3a05637363eso101965b6e.1 for ; Wed, 21 Jun 2023 14:35:00 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1687383299; x=1689975299; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=IQZvOpEeKNScoEy8zfDwI+NiQwDB6XBtYcFL8u/zWdU=; b=SHkpufL7UuEp7XzFUd1ZlJn4kyfRmhq32m9TFJMA0+k2H3xuux2reP/88RPnQg3K0R lxtuUmg7L0QBJwXIfV/Nf2NL/No3I4Z75EOuTvVv58CcNMFNU9bXSBvTs0DcWaDtOkPd DBT97nhkJ12zUBLkivdLW7RPeCfHuDeyzSM4o6Bmq3WzYXr8XDFUGMdH0gyktFPBj/X+ Owl7X4j1991AP1JR7rCa19ZcvPFvepeol8nUeehASkiqWmdypK1qwoU8sHE8VfZE5hXM 1cTJ/wpGLVZYFE4S/ZcFa4agFZ+JTVxIhfwTV3LBLyyDnLN/J7O3kMq4BwArArOvs/lM xvvg== X-Gm-Message-State: AC+VfDw+pucxmyi2VK7w5qxnMBFO+B9RX4YS31brhqa/iS82VEvXLsBx QZa7+MulSz4ztOiKuktl35MRZfJOEE1uwBDcjZw= X-Google-Smtp-Source: ACHHUZ4R4siDfH9HSbhChotgI1nU71xTzItZBCoYyVj+EZW/ROmy0Yxt0hxVNLuBZYuLDp9aE42OFQ== X-Received: by 2002:aca:bdc6:0:b0:39a:aa9d:916 with SMTP id n189-20020acabdc6000000b0039aaa9d0916mr11703713oif.4.1687383299497; Wed, 21 Jun 2023 14:34:59 -0700 (PDT) Received: from tumbleweedvm.. (181-162-15-197.baf.movistar.cl. [181.162.15.197]) by smtp.gmail.com with ESMTPSA id a8-20020a056808128800b0039ed142bf3asm2533825oiw.53.2023.06.21.14.34.58 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 21 Jun 2023 14:34:59 -0700 (PDT) To: libc-alpha@sourceware.org Cc: =?utf-8?q?Cristian_Rodr=C3=ADguez?= Subject: [PATCH 2/5] include: Replace zero-length array "msg" with C99 flexible-array. Date: Wed, 21 Jun 2023 21:34:30 +0000 Message-ID: <20230621213444.2017-1-cristian@rodriguez.im> X-Mailer: git-send-email 2.41.0 MIME-Version: 1.0 X-Spam-Status: No, score=-7.6 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, GIT_PATCH_0, HEADER_FROM_DIFFERENT_DOMAINS, RCVD_IN_BARRACUDACENTRAL, RCVD_IN_DNSWL_NONE, RCVD_IN_SORBS_WEB, SPF_HELO_NONE, SPF_NONE, TXREP, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org X-BeenThere: libc-alpha@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Libc-alpha mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-Patchwork-Original-From: =?utf-8?q?Cristian_Rodr=C3=ADguez_via_Libc-alpha?= From: =?utf-8?q?Cristian_Rodr=C3=ADguez?= Reply-To: =?utf-8?q?Cristian_Rodr=C3=ADguez?= Errors-To: libc-alpha-bounces+incoming=patchwork.ozlabs.org@sourceware.org Sender: "Libc-alpha" Signed-off-by: Cristian Rodríguez --- include/stdlib.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/stdlib.h b/include/stdlib.h index 7deb8193d7..206ceb7435 100644 --- a/include/stdlib.h +++ b/include/stdlib.h @@ -360,7 +360,7 @@ libc_hidden_proto (__qfcvt_r) struct abort_msg_s { unsigned int size; - char msg[0]; + char msg[]; }; extern struct abort_msg_s *__abort_msg; libc_hidden_proto (__abort_msg)