summaryrefslogtreecommitdiffstats
path: root/lib/bootstrap
diff options
context:
space:
mode:
authorTrent Piepho <tpiepho@kymetacorp.com>2015-12-10 21:50:51 +0000
committerSascha Hauer <s.hauer@pengutronix.de>2016-01-08 08:30:55 +0100
commita3544b162ee647a5df5026cf5e7b7ce31e8635d8 (patch)
treee2411fdf5a89a5abe11fd9f1e3b26235df55286b /lib/bootstrap
parent5e3069f3f9f4ca2f94cfa699b72c8f737a4bb9bf (diff)
downloadbarebox-a3544b162ee647a5df5026cf5e7b7ce31e8635d8.tar.gz
barebox-a3544b162ee647a5df5026cf5e7b7ce31e8635d8.tar.xz
bootstrap: constify strings
Various parameters for device names, etc. should be const strings. Signed-off-by: Trent Piepho <tpiepho@kymetacorp.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'lib/bootstrap')
-rw-r--r--lib/bootstrap/devfs.c2
-rw-r--r--lib/bootstrap/disk.c4
2 files changed, 3 insertions, 3 deletions
diff --git a/lib/bootstrap/devfs.c b/lib/bootstrap/devfs.c
index 5a64477eed..6a3dd76cdd 100644
--- a/lib/bootstrap/devfs.c
+++ b/lib/bootstrap/devfs.c
@@ -80,7 +80,7 @@ static unsigned int get_image_size(void *head)
}
#endif
-void* bootstrap_read_devfs(char *devname, bool use_bb, int offset,
+void* bootstrap_read_devfs(const char *devname, bool use_bb, int offset,
int default_size, int max_size)
{
int ret;
diff --git a/lib/bootstrap/disk.c b/lib/bootstrap/disk.c
index ebf9ee5a98..a55d5d77f4 100644
--- a/lib/bootstrap/disk.c
+++ b/lib/bootstrap/disk.c
@@ -14,12 +14,12 @@
#include <libfile.h>
#include <bootstrap.h>
-void* bootstrap_read_disk(char *dev, char *fstype)
+void* bootstrap_read_disk(const char *dev, const char *fstype)
{
int ret;
void *buf;
int len;
- char *path = "/";
+ const char *path = "/";
ret = mount(dev, fstype, path, NULL);
if (ret) {