mirror of
https://git.kernel.org/pub/scm/bluetooth/bluez.git
synced 2024-11-26 21:54:33 +08:00
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:
parent
757e10de01
commit
9cd1d095e2
@ -272,6 +272,7 @@ static const char *status2str(uint8_t status)
|
||||
case TRANSFER_STATUS_COMPLETE:
|
||||
return "complete";
|
||||
case TRANSFER_STATUS_ERROR:
|
||||
default:
|
||||
return "error";
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user