From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: passt.top; dmarc=none (p=none dis=none) header.from=gibson.dropbear.id.au Authentication-Results: passt.top; dkim=pass (2048-bit key; secure) header.d=gibson.dropbear.id.au header.i=@gibson.dropbear.id.au header.a=rsa-sha256 header.s=202502 header.b=L30OmorE; dkim-atps=neutral Received: from mail.ozlabs.org (gandalf.ozlabs.org [150.107.74.76]) by passt.top (Postfix) with ESMTPS id 1804B5A0633 for ; Mon, 10 Feb 2025 10:18:25 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gibson.dropbear.id.au; s=202502; t=1739179087; bh=v737y6Uk1atLpibRIfSFMBYoqyM8o4aKb4mR9ePOJ4M=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=L30OmorEL5l2hfGQb0/yVNuOHhc9AGYLiG8NEY2ai8sHMc502uDCGtOTpleNm6lef pqJ7K1nyyEHWc0oiCG8ne+e9zjYjLK1TRAbEFPArXUBAoT0fX7tvt48f8ZKdzv61F/ ZvGu7NN/hKZAchwrEBB03hgKX9js/9pheqOqJyA5SFlQmCf1KPd1QAfu4EFK1izbo+ qLNEY9ynl85hMHf5aL9xP9MTxS24Ex2EM4YX43CBWU24LbfY8HsYfQAV2znOOLw+SP /7F9usL04Fb737OJaw2Abx3T7uaBiIXAkpvNuHq1PIkdhr1MYOPb6XMpdiPOzfLVPp hUdfxkPEUJo3A== Received: by gandalf.ozlabs.org (Postfix, from userid 1007) id 4YrzWg4zb1z4wyV; Mon, 10 Feb 2025 20:18:07 +1100 (AEDT) From: David Gibson To: passt-dev@passt.top, Stefano Brivio Subject: [PATCH v14 05/14] fixup: Reorder conf options Date: Mon, 10 Feb 2025 20:17:56 +1100 Message-ID: <20250210091805.2261228-6-david@gibson.dropbear.id.au> X-Mailer: git-send-email 2.48.1 In-Reply-To: <20250210091805.2261228-1-david@gibson.dropbear.id.au> References: <20250210091805.2261228-1-david@gibson.dropbear.id.au> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Message-ID-Hash: 3RKIHOZDBZX2TNVCKW22BJN2LHHU4RCZ X-Message-ID-Hash: 3RKIHOZDBZX2TNVCKW22BJN2LHHU4RCZ X-MailFrom: dgibson@gandalf.ozlabs.org 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 CC: David Gibson 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: This puts the numbered options together and in order. As a bonus, it suppresses clang-tidy's rather stupid warning about identical switch branches. Signed-off-by: David Gibson --- conf.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/conf.c b/conf.c index 7a5ff8b5..78b752a8 100644 --- a/conf.c +++ b/conf.c @@ -1584,6 +1584,9 @@ void conf(struct ctx *c, int argc, char **argv) case 26: vu_print_capabilities(); break; + case 27: + /* Handle this once we checked --vhost-user */ + break; case 'd': c->debug = 1; c->quiet = 0; @@ -1774,9 +1777,6 @@ void conf(struct ctx *c, int argc, char **argv) case 'D': /* Handle these later, once addresses are configured */ break; - case 27: - /* Handle this once we checked --vhost-user */ - break; case 'h': usage(argv[0], stdout, EXIT_SUCCESS); break; -- 2.48.1