That function never modifies these strings so it can/should use consts.
It makes it a bit more flexible as now callers can also pass consts.
Signed-off-by: Rafał Miłecki <rafal@milecki.pl>
Acked-by: John Crispin <john@phrozen.org>
extern int mount_snapshot(struct volume *v);
extern int mount_overlay(struct volume *v);
-extern int mount_move(char *oldroot, char *newroot, char *dir);
+extern int mount_move(const char *oldroot, const char *newroot, const char *dir);
extern int pivot(char *new, char *old);
extern int fopivot(char *rw_root, char *ro_root);
extern int ramoverlay(void);
* @newroot: new directory for the mount point
*/
int
-mount_move(char *oldroot, char *newroot, char *dir)
+mount_move(const char *oldroot, const char *newroot, const char *dir)
{
#ifndef MS_MOVE
#define MS_MOVE (1 << 13)