diff options
author | Szymon Janc <szymon.janc@tieto.com> | 2013-10-04 11:05:35 +0200 |
---|---|---|
committer | Luiz Augusto von Dentz <luiz.von.dentz@intel.com> | 2013-10-04 14:10:33 +0300 |
commit | 9cd1d095e2609e8d2cc98c1b314f435f6563397b (patch) | |
tree | ba241bb7457e00a62956ceb05ed873544c799a03 | |
parent | 757e10de01a4a35ac7bbebb0971c67812b98004b (diff) |
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]
-rw-r--r-- | obexd/client/transfer.c | 1 |
1 files changed, 1 insertions, 0 deletions
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"; } } |