JMPDComm: Use explicit numeric assignment to avoid implicit numeric conversion.
MPDStatistics: Refactor with if block conversion to switch.