Unix CM: Use macros for process name and id access
authorSimon Wilkinson <sxw@inf.ed.ac.uk>
Thu, 29 Apr 2010 18:06:37 +0000 (19:06 +0100)
committerDerrick Brashear <shadow@dementia.org>
Wed, 19 May 2010 12:08:12 +0000 (05:08 -0700)
commite57c3b7bf6723016308497bd9377eb2de9ab6c14
treebd9273824c007f2c015ae02686219a2dcb4f0d87
parent4dab5984b7a221ef4e0b871411f58f6f33116547
Unix CM: Use macros for process name and id access

This patch uses the new osi_procname() macro to obtain the process
name for setpag() warnings on BSD and Darwin, and osi_curproc() to
obtain the process identity, simplifying the code.

Change-Id: I1f8a4d4bbcdb09eaeea3712b1fffd1aaa3cd2fa7
Reviewed-on: http://gerrit.openafs.org/1878
Reviewed-by: Derrick Brashear <shadow@dementia.org>
Reviewed-by: Matt Benjamin <matt@linuxbox.com>
Tested-by: Derrick Brashear <shadow@dementia.org>
src/afs/FBSD/osi_machdep.h
src/afs/afs_pag_cred.c
src/afs/afs_pioctl.c