summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Olbrich <m.olbrich@pengutronix.de>2020-08-28 15:36:48 +0200
committerMichael Olbrich <m.olbrich@pengutronix.de>2020-08-28 15:37:18 +0200
commite8cb9b6f491686dfc80b4786a63b778f034702f8 (patch)
tree44e3145077e9f9d02dedf729265b272a43b5cc5c
parentf4524ddcc76593e46e981ad108c0e3011d1d7313 (diff)
downloadgenimage-e8cb9b6f491686dfc80b4786a63b778f034702f8.tar.gz
genimage-e8cb9b6f491686dfc80b4786a63b778f034702f8.tar.xz
genimage: make mountpath() argument const
It not modified and this will be needed in the next commit. Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
-rw-r--r--genimage.c2
-rw-r--r--genimage.h2
2 files changed, 2 insertions, 2 deletions
diff --git a/genimage.c b/genimage.c
index 530a12d..a3994ee 100644
--- a/genimage.c
+++ b/genimage.c
@@ -465,7 +465,7 @@ static int collect_mountpoints(void)
return 0;
}
-const char *mountpath(struct image *image)
+const char *mountpath(const struct image *image)
{
struct mountpoint *mp;
diff --git a/genimage.h b/genimage.h
index 59c03ba..58995fd 100644
--- a/genimage.h
+++ b/genimage.h
@@ -22,7 +22,7 @@ const char *imagepath(void);
const char *inputpath(void);
const char *rootpath(void);
const char *tmppath(void);
-const char *mountpath(struct image *);
+const char *mountpath(const struct image *);
struct flash_type;
struct mountpoint {