From bce50703cd7fb1f51ec490b082b89b7a4c442462 Mon Sep 17 00:00:00 2001
From: Szymon Janc <szymon.janc@tieto.com>
Date: Fri, 4 Oct 2013 11:05:32 +0200
Subject: [PATCH] obexd: Return "error" for unknown status in status2str
MIME-Version: 1.0
Content-Type: text/plain; charset=utf8
Content-Transfer-Encoding: 8bit

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 | 1 +
 1 file changed, 1 insertion(+)

diff --git a/obexd/src/manager.c b/obexd/src/manager.c
index 00f353715..cec8a3903 100644
--- a/obexd/src/manager.c
+++ b/obexd/src/manager.c
@@ -287,6 +287,7 @@ static const char *status2str(uint8_t status)
 	case TRANSFER_STATUS_COMPLETE:
 		return "complete";
 	case TRANSFER_STATUS_ERROR:
+	default:
 		return "error";
 	}
 }
-- 
2.11.0