changeset 1737:2b8841f9dbfd

More cleanups.
author Matti Hamalainen <ccr@tnsp.org>
date Wed, 18 Oct 2017 13:31:44 +0300
parents 7a2d618f77d2
children dfbe7ac6b8f4
files colormap.c mkloc.c
diffstat 2 files changed, 6 insertions(+), 5 deletions(-) [+]
line wrap: on
line diff
--- a/colormap.c	Wed Oct 18 13:25:48 2017 +0300
+++ b/colormap.c	Wed Oct 18 13:31:44 2017 +0300
@@ -157,7 +157,7 @@
 
 void putColorClassXHTML(FILE *outFile, int c)
 {
-    int q = 'a'+c;
+    int q = 'a' + c;
 
     if (optCheatMode)
         fprintf(outFile, "class=%c>", q);
@@ -503,10 +503,10 @@
     for (int i = 0; i < noutputFormats; i++)
     {
         fprintf(stdout, "  %-8s - %s %s\n",
-        outputFormats[i].fmtName,
-        outputFormats[i].fmtDescription,
-        (i == optOutputFormat) ? "(default)" : ""
-        );
+            outputFormats[i].fmtName,
+            outputFormats[i].fmtDescription,
+            (i == optOutputFormat) ? "(default)" : ""
+            );
     }
 
     fprintf(stdout, "\n");
--- a/mkloc.c	Wed Oct 18 13:25:48 2017 +0300
+++ b/mkloc.c	Wed Oct 18 13:31:44 2017 +0300
@@ -517,6 +517,7 @@
                     break;
                 }
 
+                fputc(chm, outFile);
             }
             else
             if (!optNoLabels && (n = locFindByCoords(l, x, y, FALSE)) >= 0)