summaryrefslogtreecommitdiff
path: root/procfs
diff options
context:
space:
mode:
authorJustus Winter <justus@gnupg.org>2017-08-29 12:27:58 +0200
committerJustus Winter <justus@gnupg.org>2017-09-01 11:20:31 +0200
commit973089f3832df9887259e1927f7ead800d9dd897 (patch)
tree873ed6d1c8ea26d818071d02504c94872e6b01bc /procfs
parent812117cfbd76fadfd6c20913db665619070c170e (diff)
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.
Diffstat (limited to 'procfs')
-rw-r--r--procfs/main.c10
1 files changed, 4 insertions, 6 deletions
diff --git a/procfs/main.c b/procfs/main.c
index 0c87175a..e9e29123 100644
--- a/procfs/main.c
+++ b/procfs/main.c
@@ -254,13 +254,11 @@ 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. */
-error_t netfs_get_source (struct protid *cred, char *source, size_t source_len)
+ 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 (char *source, size_t source_len)
{
- if (! cred)
- return EOPNOTSUPP;
snprintf (source, source_len, "proc");
return 0;
}