[PATCH 08/14] obexd: Return "error" for unknown status in status2str

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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 00f3537..cec8a39 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";
 	}
 }
-- 
1.8.4

--
To unsubscribe from this list: send the line "unsubscribe linux-bluetooth" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[Index of Archives]     [Bluez Devel]     [Linux Wireless Networking]     [Linux Wireless Personal Area Networking]     [Linux ATH6KL]     [Linux USB Devel]     [Linux Media Drivers]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [Big List of Linux Books]

  Powered by Linux