From: Szymon Janc Date: Fri, 4 Oct 2013 09:05:35 +0000 (+0200) Subject: client/transfer: Return "error" for unknown status in status2str X-Git-Tag: android-x86-4.4-r3~7516 X-Git-Url: http://git.osdn.net/view?a=commitdiff_plain;h=9cd1d095e2609e8d2cc98c1b314f435f6563397b;p=android-x86%2Fexternal-bluetooth-bluez.git 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] --- diff --git a/obexd/client/transfer.c b/obexd/client/transfer.c index 99a17e9f7..5a8d4f249 100644 --- a/obexd/client/transfer.c +++ b/obexd/client/transfer.c @@ -272,6 +272,7 @@ static const char *status2str(uint8_t status) case TRANSFER_STATUS_COMPLETE: return "complete"; case TRANSFER_STATUS_ERROR: + default: return "error"; } }