util/cutils: Clean up variable names around qemu_strtol()
authorMarkus Armbruster <armbru@redhat.com>
Tue, 21 Feb 2017 20:13:51 +0000 (21:13 +0100)
committerMarkus Armbruster <armbru@redhat.com>
Thu, 23 Feb 2017 19:35:35 +0000 (20:35 +0100)
commit717adf960933da0650d995f050d457063d591914
tree085eb80c1092b1def5446a5f0948a576ee530a0a
parentb30d188677456b17c1cd68969e08ddc634cef644
util/cutils: Clean up variable names around qemu_strtol()

Name same things the same, different things differently.

* qemu_strtol()'s parameter @nptr is called @p in
  check_strtox_error().  Rename the latter.

* qemu_strtol()'s parameter @endptr is called @next in
  check_strtox_error().  Rename the latter.

* qemu_strtol()'s variable @p is called @endptr in
  check_strtox_error().  Rename both to @ep.

* qemu_strtol()'s variable @err is *negative* errno,
  check_strtox_error()'s parameter @err is *positive*.  Rename the
  latter to @libc_errno.

Same for qemu_strtoul(), qemu_strtoi64(), qemu_strtou64(), of course.

Signed-off-by: Markus Armbruster <armbru@redhat.com>
Reviewed-by: Eric Blake <eblake@redhat.com>
Message-Id: <1487708048-2131-8-git-send-email-armbru@redhat.com>
util/cutils.c