All of lore.kernel.org
 help / color / mirror / Atom feed
* [DTC PATCH] Remove const from dtc_file::dir.
@ 2008-01-11 19:14 Scott Wood
  2008-01-11 19:25 ` Jon Loeliger
  0 siblings, 1 reply; 2+ messages in thread
From: Scott Wood @ 2008-01-11 19:14 UTC (permalink / raw)
  To: jdl; +Cc: linuxppc-dev

Signed-off-by: Scott Wood <scottwood@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;
 };
-- 
1.5.3

^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [DTC PATCH] Remove const from dtc_file::dir.
  2008-01-11 19:14 [DTC PATCH] Remove const from dtc_file::dir Scott Wood
@ 2008-01-11 19:25 ` Jon Loeliger
  0 siblings, 0 replies; 2+ messages in thread
From: Jon Loeliger @ 2008-01-11 19:25 UTC (permalink / raw)
  To: Scott Wood; +Cc: linuxppc-dev

So, like, the other day Scott Wood mumbled:
> Signed-off-by: Scott Wood <scottwood@freescale.com>
> ---
>  srcpos.c |    4 ++--
>  srcpos.h |    2 +-
>  2 files changed, 3 insertions(+), 3 deletions(-)

Oh yeah.

jdl

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2008-01-11 19:25 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-01-11 19:14 [DTC PATCH] Remove const from dtc_file::dir Scott Wood
2008-01-11 19:25 ` Jon Loeliger

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.