warnings: use more 'const' for char *

Signed-off-by: Øyvind Harboe <oyvind.harboe@zylin.com>
This commit is contained in:
Øyvind Harboe
2010-12-29 22:07:21 +01:00
parent 8f93c0a3fe
commit 4f9a9b8eba
25 changed files with 30 additions and 30 deletions

View File

@@ -29,7 +29,7 @@ int main(int argc, char **argv)
{
int c;
unsigned int n;
char *name;
const char *name;
if (argc == 1) {
fprintf(stderr, "bin2char <varname>\n");

View File

@@ -310,7 +310,7 @@ static void command_free(struct command *c)
}
if (c->name)
free(c->name);
free((void *)c->name);
if (c->help)
free((void*)c->help);
if (c->usage)

View File

@@ -173,7 +173,7 @@ typedef __COMMAND_HANDLER((*command_handler_t));
struct command
{
char *name;
const char *name;
const char *help;
const char *usage;
struct command *parent;