diff options
author | stefanct <stefanct@2b7e53f0-3cfb-0310-b3e9-8179ed1497e1> | 2012-12-30 01:23:17 +0000 |
---|---|---|
committer | stefanct <stefanct@2b7e53f0-3cfb-0310-b3e9-8179ed1497e1> | 2012-12-30 01:23:17 +0000 |
commit | 5db4edf69b9441207528358729bf29dbbcb6da89 (patch) | |
tree | a20f41f2259da0fb66c67af221ff3e9ab00015e3 /cli_classic.c | |
parent | 8aab010bf4959341c7da646cc94ab8b2d5e48998 (diff) | |
download | flashrom-5db4edf69b9441207528358729bf29dbbcb6da89.tar.gz |
Constify parameters and globals.
This makes some stuff const (partially to get a more convenient
libflashrom interface).
Signed-off-by: Nico Huber <nico.huber@secunet.com>
Signed-off-by: Stefan Tauner <stefan.tauner@student.tuwien.ac.at>
Acked-by: Stefan Tauner <stefan.tauner@student.tuwien.ac.at>
git-svn-id: https://code.coreboot.org/svn/flashrom/trunk@1639 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1
Diffstat (limited to 'cli_classic.c')
-rw-r--r-- | cli_classic.c | 2 |
1 files changed, 1 insertions, 1 deletions
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 @@ out: 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(); |