]> git.pld-linux.org Git - packages/xephem.git/blob - xephem-format.patch
2cfdb64b72846cd0490c260274fc715a2fa4ed68
[packages/xephem.git] / xephem-format.patch
1 diff --git a/GUI/xephem/compiler.c b/GUI/xephem/compiler.c
2 index 63a0065..16bf565 100644
3 --- a/GUI/xephem/compiler.c
4 +++ b/GUI/xephem/compiler.c
5 @@ -208,7 +208,7 @@ next_token ()
6  {
7         static char toomv[] = "More than %d variables";
8         static char toomc[] = "More than %d constants";
9 -       static char badop[] = "Illegal operator";
10 +       static const char badop[] = "Illegal operator";
11         int tok = ERR;  /* just something illegal */
12         char c;
13  
14 diff --git a/GUI/xephem/obslog.c b/GUI/xephem/obslog.c
15 index e3912e2..7deb5a6 100644
16 --- a/GUI/xephem/obslog.c
17 +++ b/GUI/xephem/obslog.c
18 @@ -915,7 +915,7 @@ ol_writeLB()
19         fprintf (fp, "    </%s>\n", lbetag);
20  
21         /* finished */
22 -       fprintf (fp, cltag);
23 +       fprintf (fp, "%s", cltag);
24         xe_msg (1, "Added new log entry");
25         fclose (fp);
26  }
27 diff --git a/GUI/xephem/tools/indi/compiler.c b/GUI/xephem/tools/indi/compiler.c
28 index 2e16d93..736f2a1 100644
29 --- a/GUI/xephem/tools/indi/compiler.c
30 +++ b/GUI/xephem/tools/indi/compiler.c
31 @@ -268,7 +268,7 @@ next_token ()
32  {
33         static char toomv[] = "More than %d variables";
34         static char toomc[] = "More than %d constants";
35 -       static char badop[] = "Illegal operator";
36 +       static const char badop[] = "Illegal operator";
37         int tok = ERR;  /* just something illegal */
38         char c;
39  
40 diff --git a/GUI/xephem/tools/lx200xed/lx200xed.c b/GUI/xephem/tools/lx200xed/lx200xed.c
41 index 34bdb33..4c6e5b0 100644
42 --- a/GUI/xephem/tools/lx200xed/lx200xed.c
43 +++ b/GUI/xephem/tools/lx200xed/lx200xed.c
44 @@ -657,7 +657,7 @@ trace(int iLevel, char *szpFormat, char *szpArg)
45  {
46     if(iLevel<=config.iTrace) {
47        if(szpArg==NULL)
48 -       printf(szpFormat);
49 +       printf("%s", szpFormat);
50        else
51         printf(szpFormat,szpArg);
52     }
This page took 0.074462 seconds and 2 git commands to generate.