From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 28824C433FE for ; Tue, 24 May 2022 08:55:53 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233561AbiEXIzv (ORCPT ); Tue, 24 May 2022 04:55:51 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58096 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230286AbiEXIzs (ORCPT ); Tue, 24 May 2022 04:55:48 -0400 Received: from frasgout.his.huawei.com (frasgout.his.huawei.com [185.176.79.56]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2F6826FD2C; Tue, 24 May 2022 01:55:47 -0700 (PDT) Received: from fraeml704-chm.china.huawei.com (unknown [172.18.147.201]) by frasgout.his.huawei.com (SkyGuard) with ESMTP id 4L6nyT6WKJz67bZ1; Tue, 24 May 2022 16:52:33 +0800 (CST) Received: from [10.122.132.241] (10.122.132.241) by fraeml704-chm.china.huawei.com (10.206.15.53) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2375.24; Tue, 24 May 2022 10:55:43 +0200 Message-ID: Date: Tue, 24 May 2022 11:55:41 +0300 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:91.0) Gecko/20100101 Thunderbird/91.4.1 Subject: Re: [PATCH v5 12/15] seltests/landlock: rules overlapping test Content-Language: ru To: =?UTF-8?Q?Micka=c3=abl_Sala=c3=bcn?= CC: , , , , , References: <20220516152038.39594-1-konstantin.meskhidze@huawei.com> <20220516152038.39594-13-konstantin.meskhidze@huawei.com> <4806f5ed-41c0-f9f2-d7a1-2173c8494399@digikod.net> <09ab37e1-eba5-80be-8fb3-df2bde698fc6@huawei.com> <0958567e-cc91-f63f-402a-a6324a576da2@digikod.net> From: Konstantin Meskhidze In-Reply-To: <0958567e-cc91-f63f-402a-a6324a576da2@digikod.net> Content-Type: text/plain; charset="UTF-8"; format=flowed Content-Transfer-Encoding: 8bit X-Originating-IP: [10.122.132.241] X-ClientProxiedBy: lhreml752-chm.china.huawei.com (10.201.108.202) To fraeml704-chm.china.huawei.com (10.206.15.53) X-CFilter-Loop: Reflected Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org 5/19/2022 6:04 PM, Mickaël Salaün пишет: > > > On 19/05/2022 14:24, Konstantin Meskhidze wrote: >> >> >> 5/16/2022 8:41 PM, Mickaël Salaün пишет: > > [...] > >>>> + >>>> +    /* Makes connection to socket with port[0] */ >>>> +    ASSERT_EQ(0, connect(sockfd, (struct sockaddr *)&self->addr4[0], >>> >>> Can you please get rid of this (struct sockaddr *) type casting >>> please (without compiler warning)? >>> >>    Do you have a warning here? Cause I don't. > > There is no warning but this kind of cast is useless. But addr4 is struct sockaddr_in type and connect/bind use struct sockaddr type. That's why casting is needed here. > .