diff options
author | Justus Winter <justus@gnupg.org> | 2017-08-24 11:09:05 +0200 |
---|---|---|
committer | Justus Winter <justus@gnupg.org> | 2017-08-24 23:22:24 +0200 |
commit | 59dacf77dc0aa25dfda3b192ec099e7310d543d2 (patch) | |
tree | 67b86043eeb4eeec0ecd74495eed7bf02c54a513 /libdiskfs/diskfs.h | |
parent | a3254ced93e2db103d7395c4d5a727260ae69894 (diff) | |
download | hurd-59dacf77dc0aa25dfda3b192ec099e7310d543d2.tar.gz hurd-59dacf77dc0aa25dfda3b192ec099e7310d543d2.tar.bz2 hurd-59dacf77dc0aa25dfda3b192ec099e7310d543d2.zip |
libdiskfs: Simplify type checks.
* libdiskfs/diskfs.h (diskfs_begin_using_control_port): Check port class.
* libdiskfs/fsys-getfile.c (diskfs_S_fsys_getfile): Drop check.
* libdiskfs/fsys-getroot.c (diskfs_S_fsys_getroot): Likewise.
* libdiskfs/fsys-goaway.c (diskfs_S_fsys_goaway): Likewise.
* libdiskfs/fsys-options.c (diskfs_S_fsys_{s,g}et_options): Likewise.
* libdiskfs/fsys-syncfs.c (diskfs_S_fsys_syncfs): Likewise.
Diffstat (limited to 'libdiskfs/diskfs.h')
-rw-r--r-- | libdiskfs/diskfs.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libdiskfs/diskfs.h b/libdiskfs/diskfs.h index 402b65e5..0e148523 100644 --- a/libdiskfs/diskfs.h +++ b/libdiskfs/diskfs.h @@ -925,7 +925,7 @@ diskfs_begin_using_protid_payload (unsigned long payload) DISKFS_EXTERN_INLINE struct diskfs_control * diskfs_begin_using_control_port (fsys_t port) { - return ports_lookup_port (diskfs_port_bucket, port, NULL); + return ports_lookup_port (diskfs_port_bucket, port, diskfs_control_class); } DISKFS_EXTERN_INLINE struct diskfs_control * @@ -933,7 +933,7 @@ diskfs_begin_using_control_port_payload (unsigned long payload) { return ports_lookup_payload (diskfs_port_bucket, payload, - NULL); + diskfs_control_class); } /* And for the exec_startup interface. */ |