rcat/rmitm: Fix ignoring return value warnings