src/pmlogger/src/pmlogger.c: NetBSD changes
src/pmlogger/src/pmlogger.c: NetBSD changes

1. rework source code to avoid apparent bad code generation from the
   NetBSD C compiler
2. address small compiler warning

wuliming/pcp,adfernandes/pcp,wuliming/pcp,wuliming/pcp,aeg-aeg/pcpfans,wuliming/pcp,aeg-aeg/pcpfans,adfernandes/pcp,wuliming/pcp,wuliming/pcp,wuliming/pcp,aeg-aeg/pcpfans,aeg-aeg/pcpfans,adfernandes/pcp,adfernandes/pcp,adfernandes/pcp,adfernandes/pcp,aeg-aeg/pcpfans,aeg-aeg/pcpfans,aeg-aeg/pcpfans,adfernandes/pcp,wuliming/pcp,aeg-aeg/pcpfans,adfernandes/pcp