Encapsulate more of the client ID logic in library functions.
Will shortly add use of this API to pmevent, so wanted to make
its use simpler beforehand - instead of open-coding the logic
to flatten an argv array each time, add a helper and use it in
both existing callsites (pmlogger and pmie).
Correctly propogate out the return code from pmStore too, just
in case anyone ever wants to know (noone does at this stage) -
was always returning zero previously.
Encapsulate more of the client ID logic in library functions.
Will shortly add use of this API to pmevent, so wanted to make
its use simpler beforehand - instead of open-coding the logic
to flatten an argv array each time, add a helper and use it in
both existing callsites (pmlogger and pmie).
Correctly propogate out the return code from pmStore too, just
in case anyone ever wants to know (noone does at this stage) -
was always returning zero previously.