mirror of
https://git.kernel.org/pub/scm/bluetooth/bluez.git
synced 2024-12-03 09:04:29 +08:00
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:
parent
c8f07de497
commit
bce50703cd
@ -287,6 +287,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