aboutsummaryrefslogtreecommitdiff
path: root/libdiskfs/file-getcontrol.c
diff options
context:
space:
mode:
authorJustus Winter <4winter@informatik.uni-hamburg.de>2015-04-18 01:34:40 +0200
committerJustus Winter <4winter@informatik.uni-hamburg.de>2015-08-25 13:08:18 +0200
commit346ace4c2f5e020ca654541ff4b34d86faf88a4d (patch)
treeaa9debbc4d1f47fd22b31010b99a55bb538b7c58 /libdiskfs/file-getcontrol.c
parente507800e47973422c080a308955f8d46edc5d706 (diff)
downloadhurd-346ace4c2f5e020ca654541ff4b34d86faf88a4d.tar.gz
hurd-346ace4c2f5e020ca654541ff4b34d86faf88a4d.tar.bz2
hurd-346ace4c2f5e020ca654541ff4b34d86faf88a4d.zip
libdiskfs: rename `error' variable
* libdiskfs/dir-lookup.c (diskfs_S_dir_lookup): Rename `error' to `err'. * libdiskfs/file-getcontrol.c (diskfs_S_file_getcontrol): Likewise. * libdiskfs/file-syncfs.c (diskfs_S_file_syncfs): Likewise.
Diffstat (limited to 'libdiskfs/file-getcontrol.c')
-rw-r--r--libdiskfs/file-getcontrol.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/libdiskfs/file-getcontrol.c b/libdiskfs/file-getcontrol.c
index fc6f777e..8f98f4b3 100644
--- a/libdiskfs/file-getcontrol.c
+++ b/libdiskfs/file-getcontrol.c
@@ -25,20 +25,20 @@ diskfs_S_file_getcontrol (struct protid *cred,
mach_port_t *control,
mach_msg_type_name_t *controltype)
{
- int error;
+ error_t err;
struct port_info *newpi;
if (!cred)
return EOPNOTSUPP;
- error = fshelp_iscontroller (&diskfs_root_node->dn_stat, cred->user);
- if (error)
- return error;
+ err = fshelp_iscontroller (&diskfs_root_node->dn_stat, cred->user);
+ if (err)
+ return err;
- error = ports_create_port (diskfs_control_class, diskfs_port_bucket,
+ err = ports_create_port (diskfs_control_class, diskfs_port_bucket,
sizeof (struct port_info), &newpi);
- if (error)
- return error;
+ if (err)
+ return err;
pthread_spin_lock (&_diskfs_control_lock);
_diskfs_ncontrol_ports++;