]> xenbits.xensource.com Git - unikraft/unikraft.git/commitdiff
lib/devfs: Switch to const strings for vnops
authorMarc Rittinghaus <marc.rittinghaus@unikraft.io>
Tue, 25 Apr 2023 10:14:49 +0000 (12:14 +0200)
committerUnikraft <monkey@unikraft.io>
Sun, 7 May 2023 13:02:06 +0000 (13:02 +0000)
This commit changes all vnode operations to accept constant
string parameters to be inline with the changed definitions.

Signed-off-by: Marc Rittinghaus <marc.rittinghaus@unikraft.io>
Reviewed-by: Sergiu Moga <sergiu.moga@protonmail.com>
Approved-by: Razvan Deaconescu <razvand@unikraft.io>
Tested-by: Unikraft CI <monkey@unikraft.io>
GitHub-Closes: #866

lib/devfs/devfs_vnops.c

index 309e897865ed95c3b4b82983c41399e1aadd8059..a065fc226fe4abb775b109f0eb0a6c1ed86f5ead 100644 (file)
@@ -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;