Constify parameters and globals
This makes some stuff const (partially to get a more convenient
libflashrom interface).
Corresponding to flashrom svn r1639.
Signed-off-by: Nico Huber <nico.huber@secunet.com>
Signed-off-by: Stefan Tauner <stefan.tauner@alumni.tuwien.ac.at>
Acked-by: Stefan Tauner <stefan.tauner@alumni.tuwien.ac.at>
diff --git a/cli_classic.c b/cli_classic.c
index dd070c5..14fb825 100644
--- a/cli_classic.c
+++ b/cli_classic.c
@@ -532,7 +532,7 @@
free(layoutfile);
free(pparam);
/* clean up global variables */
- free(chip_to_probe);
+ free((char *)chip_to_probe); /* Silence! Freeing is not modifying contents. */
chip_to_probe = NULL;
#ifndef STANDALONE
ret |= close_logfile();