File: 004-fix-missing_type.patch

package info (click to toggle)
unicon 3.0.4%2Bdfsg1-4
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 22,012 kB
  • sloc: ansic: 185,000; cpp: 12,565; makefile: 818; sh: 298
file content (30 lines) | stat: -rw-r--r-- 1,031 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
Description: fix PhraseLevel declared without type
 The attached patch introduces the type declaration.
 .
Author: Michael Tautschnig <mt@debian.org>
Forwarded: not-needed
Bug-Debian: https://bugs.debian.org/795725

---
Reviewed-By: xiao sheng wen <atzlinux@sina.com>
Last-Update: 2021-01-07

--- unicon-3.0.4+dfsg1.orig/unicon/ImmModules/turbo/levelphrase.c
+++ unicon-3.0.4+dfsg1/unicon/ImmModules/turbo/levelphrase.c
@@ -169,7 +169,7 @@ void WriteAllResult (char *szFileName)
     FILE *fp;
     int i;
     fp = fopen (szFileName, "wt");
-    fprintf (fp, "PhraseLevel[256] = { \n    ");
+    fprintf (fp, "int PhraseLevel[256] = { \n    ");
     for (i = 0; i  < 256; i++)
     {
         if (i % 16 == 0)
--- unicon-3.0.4+dfsg1.orig/unicon/ImmModules/turbo/test.h
+++ unicon-3.0.4+dfsg1/unicon/ImmModules/turbo/test.h
@@ -1,4 +1,4 @@
-PhraseLevel[256] = { 
+int PhraseLevel[256] = { 
     
     0,30,60,90,120,150,180,210,240,270,300,330,360,390,420,450,
     480,510,540,570,600,630,660,690,720,750,780,810,840,870,900,930,