[Crosstoolchain-logs] [device-tree-compiler] 243/357: Remove const from dtc_file::dir.
Hector Oron
zumbi at moszumanska.debian.org
Thu Dec 8 17:06:18 UTC 2016
This is an automated email from the git hooks/post-receive script.
zumbi pushed a commit to branch upstream/1.3.x
in repository device-tree-compiler.
commit 0f635df874540ee9ef5bf7137ca2a2d0cc5d807b
Author: Scott Wood <scottwood at freescale.com>
Date: Fri Jan 11 13:14:57 2008 -0600
Remove const from dtc_file::dir.
Signed-off-by: Scott Wood <scottwood at freescale.com>
---
srcpos.c | 4 ++--
srcpos.h | 2 +-
2 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/srcpos.c b/srcpos.c
index 7d0f0a7..c8eaa1e 100644
--- a/srcpos.c
+++ b/srcpos.c
@@ -104,7 +104,7 @@ struct dtc_file *dtc_open_file(const char *fname,
}
out:
- free((void *)file->dir);
+ free(file->dir);
free(file);
return NULL;
}
@@ -114,6 +114,6 @@ void dtc_close_file(struct dtc_file *file)
if (fclose(file->file))
die("Error closing \"%s\": %s\n", file->name, strerror(errno));
- free((void *)file->dir);
+ free(file->dir);
free(file);
}
diff --git a/srcpos.h b/srcpos.h
index 8108539..3ed2334 100644
--- a/srcpos.h
+++ b/srcpos.h
@@ -25,7 +25,7 @@
#include <stdio.h>
struct dtc_file {
- const char *dir;
+ char *dir;
const char *name;
FILE *file;
};
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/crosstoolchain/device-tree-compiler.git
More information about the Crosstoolchain-logs
mailing list