aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorIan Kent <raven@themaw.net>2021-03-06 14:05:49 +0800
committerIan Kent <raven@themaw.net>2021-03-15 11:51:11 +0800
commit5a8240d552faf1a6d0eeb55e73855d45ed8be868 (patch)
tree3dcbc781aa04ab69bf8138f5c7411782b0ec49af /include
parent5710c42516f56e9bc065852d6b7291397fa3c9d5 (diff)
downloadautofs-5a8240d552faf1a6d0eeb55e73855d45ed8be868.tar.gz
autofs-5.1.7 - pass root length to mount_fullpath()
The length of root may already be known, add a parameter to allow passing it to mount_fullpath() so a strlen() call can be avoided. Signed-off-by: Ian Kent <raven@themaw.net>
Diffstat (limited to 'include')
-rw-r--r--include/mounts.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/mounts.h b/include/mounts.h
index ec895e1c..d7980976 100644
--- a/include/mounts.h
+++ b/include/mounts.h
@@ -131,7 +131,7 @@ int check_nfs_mount_version(struct nfs_mount_vers *, struct nfs_mount_vers *);
extern unsigned int nfs_mount_uses_string_options;
int mount_fullpath(char *fullpath, size_t max_len,
- const char *root, const char *name);
+ const char *root, size_t root_len, const char *name);
struct amd_entry;