From patchwork Sun Dec 29 16:51:08 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Samuel Thibault X-Patchwork-Id: 1216120 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=sourceware.org (client-ip=209.132.180.131; helo=sourceware.org; envelope-from=libc-alpha-return-108347-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="Z4zs4dN9"; 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 47m65j2N0fz9sPJ for ; Mon, 30 Dec 2019 03:51:20 +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 :mime-version:content-transfer-encoding; q=dns; s=default; b=Wmp VmwYSmd1lOLiAIqZAia4DmlKtK1dgd5I7icUrlWibwNRQfVhwDXvVwzHnoKh6gqr B2+28IZr0n8hQ4fnJentz7ypOEjp06f3hKHMvvEDoLg9VyvGn4rjH5QmUuR+gMbu dPCce41Tky0jnlaGbQGM7uEYr83P74ajvB3vrFrc= 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 :mime-version:content-transfer-encoding; s=default; bh=37+mqXKLx niINNlGglUtZFNiCOY=; b=Z4zs4dN98MXfZBu1WlQg1X9Pwp4JXZfa+iEs2mCDU ip16EVWW7tqXdZbxFM60XrOSK4oyoQ3M3J3v+vc+ryFjaiEa5iTzw4NGhFhJJxVd 7oR5sWk+aGQa+O2Z64ciDOMXFpByxvPZooyVZIRdpN07AvwDvyzyD+D1vC3aRTvh Zw= Received: (qmail 41303 invoked by alias); 29 Dec 2019 16:51:14 -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 41294 invoked by uid 89); 29 Dec 2019 16:51:13 -0000 Authentication-Results: sourceware.org; auth=none 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, RCVD_IN_DNSWL_NONE, SPF_HELO_PASS, SPF_NEUTRAL autolearn=ham version=3.3.1 spammy=1087, HContent-Transfer-Encoding:8bit X-HELO: hera.aquilenet.fr From: Samuel Thibault To: libc-alpha@sourceware.org Cc: Samuel Thibault , commit-hurd@gnu.org Subject: [hurd,commited] hurd sendmsg: Fix warning on calling CMSG_*HDR Date: Sun, 29 Dec 2019 17:51:08 +0100 Message-Id: <20191229165108.2856915-1-samuel.thibault@ens-lyon.org> MIME-Version: 1.0 --- sysdeps/mach/hurd/sendmsg.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sysdeps/mach/hurd/sendmsg.c b/sysdeps/mach/hurd/sendmsg.c index 0c19b3223c..3d7317cec4 100644 --- a/sysdeps/mach/hurd/sendmsg.c +++ b/sysdeps/mach/hurd/sendmsg.c @@ -108,7 +108,7 @@ __libc_sendmsg (int fd, const struct msghdr *message, int flags) /* Allocate enough room for ports. */ cmsg = CMSG_FIRSTHDR (message); - for (; cmsg; cmsg = CMSG_NXTHDR (message, cmsg)) + for (; cmsg; cmsg = CMSG_NXTHDR ((struct msghdr *) message, cmsg)) if (cmsg->cmsg_level == SOL_SOCKET && cmsg->cmsg_type == SCM_RIGHTS) nports += (cmsg->cmsg_len - CMSG_ALIGN (sizeof (struct cmsghdr))) / sizeof (int); @@ -119,7 +119,7 @@ __libc_sendmsg (int fd, const struct msghdr *message, int flags) nports = 0; for (cmsg = CMSG_FIRSTHDR (message); cmsg; - cmsg = CMSG_NXTHDR (message, cmsg)) + cmsg = CMSG_NXTHDR ((struct msghdr *) message, cmsg)) { if (cmsg->cmsg_level == SOL_SOCKET && cmsg->cmsg_type == SCM_RIGHTS) {