OSDN Git Service

obexd: Return "error" for unknown status in status2str
authorSzymon Janc <szymon.janc@tieto.com>
Fri, 4 Oct 2013 09:05:32 +0000 (11:05 +0200)
committerLuiz Augusto von Dentz <luiz.von.dentz@intel.com>
Fri, 4 Oct 2013 11:10:33 +0000 (14:10 +0300)
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]

obexd/src/manager.c

index 00f3537..cec8a39 100644 (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";
        }
 }