From 973089f3832df9887259e1927f7ead800d9dd897 Mon Sep 17 00:00:00 2001 From: Justus Winter Date: Tue, 29 Aug 2017 12:27:58 +0200 Subject: Remove unused parameter from the 'get_source' machinery. * libdiskfs/diskfs.h (diskfs_get_source): Remove first parameter. * libdiskfs/file-get-source.c (diskfs_S_file_get_source): Adapt callsite. * libdiskfs/get-source.c (diskfs_get_source): Adapt default implementation. * libnetfs/netfs.h (netfs_get_source): Remove first parameter. * libnetfs/file-get-source.c (netfs_S_file_get_source): Adapt callsite. * libnetfs/get-source.c (netfs_get_source): Adapt default implementation. * libtrivfs/trivfs.h (trivfs_get_source): Remove first parameter. * libtrivfs/file-get-source.c (trivfs_S_file_get_source): Adapt callsite. * libtrivfs/get-source.c (trivfs_get_source): Adapt default implementation. * nfs/main.c (netfs_get_source): Adapt implementation. * procfs/main.c (netfs_get_source): Likewise. * trans/firmlink.c (trivfs_get_source): Likewise. --- nfs/main.c | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) (limited to 'nfs/main.c') diff --git a/nfs/main.c b/nfs/main.c index cd1c29a0..c98eb567 100644 --- a/nfs/main.c +++ b/nfs/main.c @@ -270,15 +270,12 @@ netfs_append_args (char **argz, size_t *argz_len) } /* The user may define this function. The function must set source to - the source of CRED. The function may return an EOPNOTSUPP to - indicate that the concept of a source device is not applicable. The - default function always returns EOPNOTSUPP. */ + the source of the translator. The function may return an EOPNOTSUPP + to indicate that the concept of a source device is not + applicable. The default function always returns EOPNOTSUPP. */ error_t -netfs_get_source (struct protid *cred, char *source, size_t source_len) +netfs_get_source (char *source, size_t source_len) { - if (! cred) - return EOPNOTSUPP; - snprintf (source, source_len, "%s:%s", host, remote_fs); return 0; } -- cgit v1.2.3