Issue #50: http://code.google.com/p/psutil/issues/detail?id=50
Issue #50: http://code.google.com/p/psutil/issues/detail?id=50

Here are 7 issues with the psutil/arch/osx/process_info.c file:

line 134 -- val is unused.
line 135 -- val_start is unused.
line 167 -- pid is long while mib is int.
line 171 -- should the constant 22 not be EINVAL?
line 173 -- should -2 not be ARGS_ACCESS_DENIED?
line 242 -- np is never assigned any value.
line 254 -- ERROR_B falls thru to ERROR_C.

checking in the provided patch for now, will prob need a full code "spring cleaning" at some point for the BSD and OS X process_info.c files, but this will at least get rid of some of the dross from old PSI code.

ztop/psutil,ztop/psutil,ztop/psutil,ztop/psutil