From 002b46da8a4270b89003a28b4f5431d857cd0b33 Mon Sep 17 00:00:00 2001 From: Justus Winter <4winter@informatik.uni-hamburg.de> Date: Sun, 19 Jan 2014 14:16:51 +0100 Subject: Rename variables with the name "error" to "err". The canonical name for variables of the type error_t is err. There are, however, places where the variable is called error instead. This is unfortunate, as this shadows the error function. Rename such variables to err. For reference, this is accomplished using the following semantic patch: @@ expression E; @@ -error_t error = E; +error_t err = E; <... -error +err ...> @@ @@ -error_t error; +error_t err; <... -error +err ...> * libdiskfs/dir-link.c: Rename error to err. * libdiskfs/dir-unlink.c: Likewise. * libdiskfs/file-get-trans.c: Likewise. * libdiskfs/file-get-transcntl.c: Likewise. * libdiskfs/file-set-trans.c: Likewise. * libdiskfs/fsys-getroot.c: Likewise. * libshouldbeinlibc/wire.c: Likewise. --- libshouldbeinlibc/wire.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'libshouldbeinlibc') diff --git a/libshouldbeinlibc/wire.c b/libshouldbeinlibc/wire.c index b9540955..ca5d32b1 100644 --- a/libshouldbeinlibc/wire.c +++ b/libshouldbeinlibc/wire.c @@ -139,10 +139,10 @@ wire_segment (vm_address_t start, vm_size_t len) { mach_port_t host, device; - error_t error; + error_t err; - error = get_privileged_ports (&host, &device); - if (!error) + err = get_privileged_ports (&host, &device); + if (!err) { wire_segment_internal (start, len, host); mach_port_deallocate (mach_task_self (), host); @@ -158,11 +158,11 @@ wire_task_self () { struct link_map *map; mach_port_t host, device; - error_t error; + error_t err; extern char _edata, _etext, __data_start; - error = get_privileged_ports (&host, &device); - if (error) + err = get_privileged_ports (&host, &device); + if (err) return; map = loaded (); -- cgit v1.2.3