Blob Blame History Raw
From 1422eda187f936e576b17a3e0036b1c1c3476fc4 Mon Sep 17 00:00:00 2001
From: Eugene Syromyatnikov <evgsyr@gmail.com>
Date: Sun, 19 Aug 2018 21:51:15 +0200
Subject: [PATCH 03/27] xlat: fix typo in smc_protocols.in

* xlat/smc_protocols.in: s/^MCPROTO_SMC/SMCPROTO_SMC/.

Additional changes:
	Updated aut-generated xlat/smc_protocols.h

---
 xlat/smc_protocols.in | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Index: strace-4.24/xlat/smc_protocols.in
===================================================================
--- strace-4.24.orig/xlat/smc_protocols.in	2018-05-08 22:59:20.000000000 +0200
+++ strace-4.24/xlat/smc_protocols.in	2019-03-10 05:08:53.367748788 +0100
@@ -1,3 +1,3 @@
 #value_indexed
-MCPROTO_SMC	0
+SMCPROTO_SMC	0
 SMCPROTO_SMC6	1
Index: strace-4.24/xlat/smc_protocols.h
===================================================================
--- strace-4.24.orig/xlat/smc_protocols.h	2018-08-14 02:44:23.000000000 +0200
+++ strace-4.24/xlat/smc_protocols.h	2019-03-10 05:09:36.010321779 +0100
@@ -3,12 +3,12 @@
 #include "gcc_compat.h"
 #include "static_assert.h"
 
-#if defined(MCPROTO_SMC) || (defined(HAVE_DECL_MCPROTO_SMC) && HAVE_DECL_MCPROTO_SMC)
+#if defined(SMCPROTO_SMC) || (defined(HAVE_DECL_SMCPROTO_SMC) && HAVE_DECL_SMCPROTO_SMC)
 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
-static_assert((MCPROTO_SMC) == (0), "MCPROTO_SMC != 0");
+static_assert((SMCPROTO_SMC) == (0), "SMCPROTO_SMC != 0");
 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
 #else
-# define MCPROTO_SMC 0
+# define SMCPROTO_SMC 0
 #endif
 #if defined(SMCPROTO_SMC6) || (defined(HAVE_DECL_SMCPROTO_SMC6) && HAVE_DECL_SMCPROTO_SMC6)
 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
@@ -28,7 +28,7 @@
 
 static
 const struct xlat smc_protocols[] = {
- [MCPROTO_SMC] = XLAT(MCPROTO_SMC),
+ [SMCPROTO_SMC] = XLAT(SMCPROTO_SMC),
  [SMCPROTO_SMC6] = XLAT(SMCPROTO_SMC6),
  XLAT_END
 };