tcsh-6.19.00-023-fix-debugging-code.patch added

> PR/510: Masanarid Iida: Add missing paren (in debugging code)
  > PR/510: Masanari Iida: Fix debugging printfs.
This commit is contained in:
David Kaspar [Dee'Kej] 2016-05-03 16:47:17 +02:00
parent 8d88e6454b
commit 686b342ebc
2 changed files with 89 additions and 0 deletions

View File

@ -0,0 +1,87 @@
From 9fdb7e1f4dadd7996d614b9cab95704fa22cf0d5 Mon Sep 17 00:00:00 2001
From: christos <christos>
Date: Fri, 15 Jan 2016 15:28:57 +0000
Subject: [PATCH 1/2] PR/510: Masanarid Iida: Add missing paren (in debugging
code)
---
ed.defns.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/ed.defns.c b/ed.defns.c
index 60ef193..a472e66 100644
--- a/ed.defns.c
+++ b/ed.defns.c
@@ -1805,7 +1805,7 @@ CheckMaps(void)
if ((sizeof(CcKeyMap)) != c1)
xprintf("CcKeyMap should be %d entries, but is %d.\r\n",
- NT_NUM_KEYS, sizeof(CcKeyMap) / sizeof(KEYCMD)));
+ NT_NUM_KEYS, (sizeof(CcKeyMap) / sizeof(KEYCMD)));
if ((sizeof(CcAltMap)) != c1)
xprintf("CcAltMap should be %d entries, but is %d.\r\n",
--
2.5.5
From 3512c94faa44497e27959da78814777bdf8e0491 Mon Sep 17 00:00:00 2001
From: christos <christos>
Date: Sun, 14 Feb 2016 15:44:18 +0000
Subject: [PATCH 2/2] PR/510: Masanari Iida: Fix debugging printfs.
---
ed.defns.c | 32 ++++++++++++++++----------------
1 file changed, 16 insertions(+), 16 deletions(-)
diff --git a/ed.defns.c b/ed.defns.c
index a472e66..a4ed6a0 100644
--- a/ed.defns.c
+++ b/ed.defns.c
@@ -1801,27 +1801,27 @@ editinit(void)
void
CheckMaps(void)
{ /* check the size of the key maps */
- int c1 = (NT_NUM_KEYS * sizeof(KEYCMD));
+ size_t c1 = NT_NUM_KEYS * sizeof(KEYCMD);
- if ((sizeof(CcKeyMap)) != c1)
- xprintf("CcKeyMap should be %d entries, but is %d.\r\n",
- NT_NUM_KEYS, (sizeof(CcKeyMap) / sizeof(KEYCMD)));
+ if (sizeof(CcKeyMap) != c1)
+ xprintf("CcKeyMap should be %u entries, but is %zu.\r\n",
+ NT_NUM_KEYS, sizeof(CcKeyMap) / sizeof(KEYCMD));
- if ((sizeof(CcAltMap)) != c1)
- xprintf("CcAltMap should be %d entries, but is %d.\r\n",
- NT_NUM_KEYS, (sizeof(CcAltMap) / sizeof(KEYCMD)));
+ if (sizeof(CcAltMap) != c1)
+ xprintf("CcAltMap should be %u entries, but is %zu.\r\n",
+ NT_NUM_KEYS, sizeof(CcAltMap) / sizeof(KEYCMD));
- if ((sizeof(CcEmacsMap)) != c1)
- xprintf("CcEmacsMap should be %d entries, but is %d.\r\n",
- NT_NUM_KEYS, (sizeof(CcEmacsMap) / sizeof(KEYCMD)));
+ if (sizeof(CcEmacsMap) != c1)
+ xprintf("CcEmacsMap should be %u entries, but is %zu.\r\n",
+ NT_NUM_KEYS, sizeof(CcEmacsMap) / sizeof(KEYCMD));
- if ((sizeof(CcViMap)) != c1)
- xprintf("CcViMap should be %d entries, but is %d.\r\n",
- NT_NUM_KEYS, (sizeof(CcViMap) / sizeof(KEYCMD)));
+ if (sizeof(CcViMap) != c1)
+ xprintf("CcViMap should be %u entries, but is %zu.\r\n",
+ NT_NUM_KEYS, sizeof(CcViMap) / sizeof(KEYCMD));
- if ((sizeof(CcViCmdMap)) != c1)
- xprintf("CcViCmdMap should be %d entries, but is %d.\r\n",
- NT_NUM_KEYS, (sizeof(CcViCmdMap) / sizeof(KEYCMD)));
+ if (sizeof(CcViCmdMap) != c1)
+ xprintf("CcViCmdMap should be %u entries, but is %zu.\r\n",
+ NT_NUM_KEYS, sizeof(CcViCmdMap) / sizeof(KEYCMD));
}
#endif
--
2.5.5

View File

@ -51,6 +51,7 @@ Patch019: tcsh-6.19.00-019-fix-uninitialized-estr.patch
Patch020: tcsh-6.19.00-020-make-heredoc-interruptible-again.patch
Patch021: tcsh-6.19.00-021-remove-extra-semicolon.patch
Patch022: tcsh-6.19.00-022-fix-source-command-memory-leak.patch
Patch023: tcsh-6.19.00-023-fix-debugging-code.patch
# Downstream patches -- these should be always included when doing rebase:
@ -194,6 +195,7 @@ fi
tcsh-6.19.00-020-make-heredoc-interruptible-again.patch
tcsh-6.19.00-021-remove-extra-semicolon.patch
tcsh-6.19.00-022-fix-source-command-memory-leak.patch
tcsh-6.19.00-023-fix-debugging-code.patch
* Thu Apr 21 2016 David Kaspar [Dee'Kej] <dkaspar@redhat.com> - 6.19.00-6
- Drop tcsh-6.15.00-closem.patch - issue not reproducible, patch not accepted by upstream