projects
/
platform
/
core
/
connectivity
/
mtp-responder.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Remove the execution flag from non-executables
[platform/core/connectivity/mtp-responder.git]
/
src
/
util
/
mtp_msgq.c
diff --git
a/src/util/mtp_msgq.c
b/src/util/mtp_msgq.c
old mode 100755
(executable)
new mode 100644
(file)
index
ad98fa5
..
793dd8f
--- a/
src/util/mtp_msgq.c
+++ b/
src/util/mtp_msgq.c
@@
-22,6
+22,7
@@
/*
* FUNCTIONS
*/
/*
* FUNCTIONS
*/
+/* LCOV_EXCL_START */
mtp_bool _util_msgq_init(msgq_id_t *mq_id, mtp_uint32 flags)
{
*mq_id = msgget(IPC_PRIVATE, 0666 | IPC_CREAT);
mtp_bool _util_msgq_init(msgq_id_t *mq_id, mtp_uint32 flags)
{
*mq_id = msgget(IPC_PRIVATE, 0666 | IPC_CREAT);
@@
-49,11
+50,10
@@
mtp_bool _util_msgq_receive(msgq_id_t mq_id, void *buf, mtp_uint32 size,
{
int ret = 0;
{
int ret = 0;
- if (flags == 1)
{
+ if (flags == 1)
ret = msgrcv(mq_id, buf, size, 0, IPC_NOWAIT);
ret = msgrcv(mq_id, buf, size, 0, IPC_NOWAIT);
- } else {
+ else
ret = msgrcv(mq_id, buf, size, 0, 0);
ret = msgrcv(mq_id, buf, size, 0, 0);
- }
if (ret == -1) {
ERR("msgrcv() Fail");
if (ret == -1) {
ERR("msgrcv() Fail");
@@
-122,3
+122,4
@@
mtp_bool _util_rcv_msg_from_mq(msgq_id_t mq_id, unsigned char **pkt,
return TRUE;
}
return TRUE;
}
+/* LCOV_EXCL_STOP */