summaryrefslogtreecommitdiff
path: root/libtrivfs
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 /libtrivfs
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 'libtrivfs')
-rw-r--r--libtrivfs/file-get-source.c2
-rw-r--r--libtrivfs/get-source.c2
-rw-r--r--libtrivfs/trivfs.h11
3 files changed, 7 insertions, 8 deletions
diff --git a/libtrivfs/file-get-source.c b/libtrivfs/file-get-source.c
index f6637d87..c2420fb8 100644
--- a/libtrivfs/file-get-source.c
+++ b/libtrivfs/file-get-source.c
@@ -30,5 +30,5 @@ trivfs_S_file_get_source (struct trivfs_protid *cred,
mach_msg_type_name_t replyPoly,
char *source)
{
- return cred? trivfs_get_source (cred, source, 1024 /* XXX */): EOPNOTSUPP;
+ return cred ? trivfs_get_source (source, 1024 /* XXX */) : EOPNOTSUPP;
}
diff --git a/libtrivfs/get-source.c b/libtrivfs/get-source.c
index 1b3ce11d..1f772000 100644
--- a/libtrivfs/get-source.c
+++ b/libtrivfs/get-source.c
@@ -22,7 +22,7 @@
#include "priv.h"
error_t __attribute__ ((weak))
-trivfs_get_source (struct trivfs_protid *cred, char *source, size_t source_len)
+trivfs_get_source (char *source, size_t source_len)
{
return EOPNOTSUPP;
}
diff --git a/libtrivfs/trivfs.h b/libtrivfs/trivfs.h
index 49cc765f..ddeb29a8 100644
--- a/libtrivfs/trivfs.h
+++ b/libtrivfs/trivfs.h
@@ -215,12 +215,11 @@ error_t trivfs_set_options (struct trivfs_control *fsys,
error_t trivfs_append_args (struct trivfs_control *fsys,
char **argz, size_t *argz_len);
-/* The user may define this function. The function must set source to
- the source device 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 trivfs_get_source (struct trivfs_protid *cred,
- char *source, size_t source_len);
+/* The user may define this function. The function must set SOURCE to
+ 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 trivfs_get_source (char *source, size_t source_len);
/* Add the port class *CLASS to the list of control port classes recognized
by trivfs; if *CLASS is 0, an attempt is made to allocate a new port