client/transfer: Return "error" for unknown status in status2str

This can happen only if there is a bug in obexd code.
This fix following build error:

  CC     obexd/client/obexd-transfer.o
obexd/client/transfer.c: In function ‘status2str’:
obexd/client/transfer.c:277:1: error: control reaches end of non-void
    function [-Werror=return-type]
This commit is contained in:
Szymon Janc 2013-10-04 11:05:35 +02:00 committed by Luiz Augusto von Dentz
parent 757e10de01
commit 9cd1d095e2

View File

@ -272,6 +272,7 @@ static const char *status2str(uint8_t status)
case TRANSFER_STATUS_COMPLETE:
return "complete";
case TRANSFER_STATUS_ERROR:
default:
return "error";
}
}