From: Marc Rittinghaus Date: Tue, 25 Apr 2023 10:14:49 +0000 (+0200) Subject: lib/devfs: Switch to const strings for vnops X-Git-Tag: RELEASE-0.13.0~65 X-Git-Url: http://xenbits.xensource.com/gitweb?a=commitdiff_plain;h=22c1a55814bd3763ea35285ae75a14ee5accf988;p=unikraft%2Funikraft.git lib/devfs: Switch to const strings for vnops This commit changes all vnode operations to accept constant string parameters to be inline with the changed definitions. Signed-off-by: Marc Rittinghaus Reviewed-by: Sergiu Moga Approved-by: Razvan Deaconescu Tested-by: Unikraft CI GitHub-Closes: #866 --- diff --git a/lib/devfs/devfs_vnops.c b/lib/devfs/devfs_vnops.c index 309e89786..a065fc226 100644 --- a/lib/devfs/devfs_vnops.c +++ b/lib/devfs/devfs_vnops.c @@ -132,7 +132,7 @@ devfs_ioctl(struct vnode *vp, struct vfscore_file *fp __unused, } static int -devfs_lookup(struct vnode *dvp, char *name, struct vnode **vpp) +devfs_lookup(struct vnode *dvp, const char *name, struct vnode **vpp) { struct devinfo info; struct vnode *vp;