Neither of the return types used for data and numc were actually correct for the values being returned from the uartdriver functions.