]> rtime.felk.cvut.cz Git - linux-conf-perf.git/commitdiff
kconfig2dot: Convert to C++
authorMichal Sojka <sojkam1@fel.cvut.cz>
Sun, 11 Oct 2015 07:09:35 +0000 (09:09 +0200)
committerMichal Sojka <sojkam1@fel.cvut.cz>
Sun, 11 Oct 2015 07:09:35 +0000 (09:09 +0200)
scripts/kconfig2dot/kconfig2dot.cc [moved from scripts/kconfig2dot/kconfig2dot.c with 99% similarity]

similarity index 99%
rename from scripts/kconfig2dot/kconfig2dot.c
rename to scripts/kconfig2dot/kconfig2dot.cc
index 7ff20007ec79b720d476e1a759ebef0e82e4f386..6fb11ee22c9cf1f78b7aa3b17b437f1457b66939 100644 (file)
@@ -1,4 +1,3 @@
-#define _GNU_SOURCE
 #include <stdlib.h>
 #include <stdio.h>
 #include <string.h>
@@ -84,7 +83,7 @@ const char *interesting_opts[] = {
 
 bool is_interesting(struct symbol *sym)
 {
-    int i;
+    unsigned i;
 
     if (!sym->name)
        return false;
@@ -155,7 +154,7 @@ void print_symbol(FILE *f, struct symbol *sym)
        return;
     sym->flags |= SYMBOL_PRINTED;
 
-    char *opts = "";
+    const char *opts = "";
     if (is_interesting(sym))
        opts = " [penwidth=3]";
     else