From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: passt.top; dmarc=pass (p=quarantine dis=none) header.from=redhat.com Authentication-Results: passt.top; dkim=pass (1024-bit key; unprotected) header.d=redhat.com header.i=@redhat.com header.a=rsa-sha256 header.s=mimecast20190719 header.b=W2M5HK9D; dkim-atps=neutral Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) by passt.top (Postfix) with ESMTPS id CB4725A0272 for ; Thu, 09 Jul 2026 00:32:16 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1783549935; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=8qH9na2yPEgcZjD83qNCpo4X81qf2LGojg7jYVwehhM=; b=W2M5HK9DQEsEBXstTTBa/2cMhtW3m6T3EDXH8MEPGGDUhng3d/8zMRO1uwvQo6yukkryF3 o1apXkTTpCPiHLmlq4h1PelZzypt/J/YtYSeM1NL7opMfrri+RtZvviLGk0ebupQOEfkEE TdSPq3xPo7vC0Nv51l2RlEm/U6XngzA= Received: from mx-prod-mc-08.mail-002.prod.us-west-2.aws.redhat.com (ec2-35-165-154-97.us-west-2.compute.amazonaws.com [35.165.154.97]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-444-KbLt2y6BNlyV1s55QmymSA-1; Wed, 08 Jul 2026 18:32:12 -0400 X-MC-Unique: KbLt2y6BNlyV1s55QmymSA-1 X-Mimecast-MFC-AGG-ID: KbLt2y6BNlyV1s55QmymSA_1783549931 Received: from mx-prod-int-05.mail-002.prod.us-west-2.aws.redhat.com (mx-prod-int-05.mail-002.prod.us-west-2.aws.redhat.com [10.30.177.17]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by mx-prod-mc-08.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTPS id BDA211802662; Wed, 8 Jul 2026 22:32:11 +0000 (UTC) Received: from jmaloy-thinkpadp16vgen1.rmtcaqc.csb (unknown [10.22.88.44]) by mx-prod-int-05.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTP id E8FF21955F75; Wed, 8 Jul 2026 22:32:10 +0000 (UTC) From: Jon Maloy To: sbrivio@redhat.com, david@gibson.dropbear.id.au, jmaloy@redhat.com, passt-dev@passt.top Subject: [PATCH 5/7] doc/migration: Fix buffer type mismatch in recv() call Date: Wed, 8 Jul 2026 18:32:01 -0400 Message-ID: <20260708223203.885345-6-jmaloy@redhat.com> In-Reply-To: <20260708223203.885345-1-jmaloy@redhat.com> References: <20260708223203.885345-1-jmaloy@redhat.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 3.0 on 10.30.177.17 X-Mimecast-Spam-Score: 0 X-Mimecast-MFC-PROC-ID: AYMCdER1fgAtp31ZhJ-jS6sLmezqhm2-toyPBCUMzQA_1783549931 X-Mimecast-Originator: redhat.com Content-Transfer-Encoding: 8bit content-type: text/plain; charset="US-ASCII"; x-default=true Message-ID-Hash: L32DPYRXRB2TKD2P23WHGUMX72OZRAHR X-Message-ID-Hash: L32DPYRXRB2TKD2P23WHGUMX72OZRAHR X-MailFrom: jmaloy@redhat.com X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; emergency; loop; banned-address; member-moderation; nonmember-moderation; administrivia; implicit-dest; max-recipients; max-size; news-moderation; no-subject; digests; suspicious-header X-Mailman-Version: 3.3.8 Precedence: list List-Id: Development discussion and patches for passt Archived-At: Archived-At: List-Archive: List-Archive: List-Help: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: The compound literal passed to recv() was int (4 bytes) but only 1 byte is received. Use int8_t to match the length, consistent with the other recv() calls in this file and in source.c. Signed-off-by: Jon Maloy --- doc/migration/target.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/doc/migration/target.c b/doc/migration/target.c index 0eb1f6ac..78cfd564 100644 --- a/doc/migration/target.c +++ b/doc/migration/target.c @@ -69,7 +69,7 @@ int main(int argc, char **argv) /* Send command to helper: turn repair mode on, wait for reply */ cmd = TCP_REPAIR_ON; sendmsg(s_helper, &msg, 0); - recv(s_helper, &((int){ 0 }), 1, 0); + recv(s_helper, &((int8_t){ 0 }), 1, 0); /* Set sending sequence */ seq = TCP_SEND_QUEUE; -- 2.52.0