obexd: Return "error" for unknown status in status2str

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

  CC     obexd/src/obexd-manager.o
obexd/src/manager.c: In function ‘status2str’:
obexd/src/manager.c:292:1: error: control reaches end of non-void
    function [-Werror=return-type]
This commit is contained in:
Szymon Janc 2013-10-04 11:05:32 +02:00 committed by Luiz Augusto von Dentz
parent c8f07de497
commit bce50703cd

View File

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