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=G/qjwl5K; 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 A60CD5A026D for ; Thu, 09 Jul 2026 23:57:12 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1783634231; 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=b3265aqo4cTEiATY9N5U1tcu0Ti7l9Ck/F/ob8aMEXk=; b=G/qjwl5KkAxPniFKz229dMOZlyUneMNXzPC4qE/vF9NnE6KVFI+iNCugK3O7c3eATt3Dk9 f4aKL/6U9zER4nkIAaVUWadAlzSc24X9wyy85ToWs04uf1IzMJtXpr0p+ThyXtiafANh8Q erDNF8l1b5s9ZLMNls8UxII4IEXDs4Q= Received: from mx-prod-mc-01.mail-002.prod.us-west-2.aws.redhat.com (ec2-54-186-198-63.us-west-2.compute.amazonaws.com [54.186.198.63]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-692-6nh6HjvuN3GMm_EiWjXv4w-1; Thu, 09 Jul 2026 17:57:08 -0400 X-MC-Unique: 6nh6HjvuN3GMm_EiWjXv4w-1 X-Mimecast-MFC-AGG-ID: 6nh6HjvuN3GMm_EiWjXv4w_1783634227 Received: from mx-prod-int-03.mail-002.prod.us-west-2.aws.redhat.com (mx-prod-int-03.mail-002.prod.us-west-2.aws.redhat.com [10.30.177.12]) (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-01.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTPS id A49CB1956055; Thu, 9 Jul 2026 21:57:07 +0000 (UTC) Received: from jmaloy-thinkpadp16vgen1.rmtcaqc.csb (unknown [10.22.88.44]) by mx-prod-int-03.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTP id 7CC0B195608A; Thu, 9 Jul 2026 21:57:06 +0000 (UTC) From: Jon Maloy To: sbrivio@redhat.com, david@gibson.dropbear.id.au, jmaloy@redhat.com, passt-dev@passt.top Subject: [PATCH v2 5/6] doc/migration: Fix buffer type mismatch in recv() call Date: Thu, 9 Jul 2026 17:56:55 -0400 Message-ID: <20260709215656.1351549-6-jmaloy@redhat.com> In-Reply-To: <20260709215656.1351549-1-jmaloy@redhat.com> References: <20260709215656.1351549-1-jmaloy@redhat.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 3.0 on 10.30.177.12 X-Mimecast-Spam-Score: 0 X-Mimecast-MFC-PROC-ID: AIRmM_y7ZtFV9mYULw7PJ2RMbkbroUzWJHkIAG11bd8_1783634227 X-Mimecast-Originator: redhat.com Content-Transfer-Encoding: 8bit content-type: text/plain; charset="US-ASCII"; x-default=true Message-ID-Hash: 52JXE37U66YEFSY45XOQGKHIYA6O2I2N X-Message-ID-Hash: 52JXE37U66YEFSY45XOQGKHIYA6O2I2N 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 Reviewed-by: David Gibson --- v2: No changes. --- 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 e2469837..3e664659 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