summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorColin Guthrie <colin@mageia.org>2012-02-24 21:22:38 +0000
committerColin Guthrie <colin@mageia.org>2012-02-24 21:22:41 +0000
commit3927b4b60716314a3db53587f90ce0e3c13c0197 (patch)
tree7de1fbc86bb124968d4ee225cc1d822b54b12381
parent0b421f0d93f691ccd95d3999a1a9045caee76671 (diff)
bluetooth: Run update-sbc
This is primarily for the bluez commit 03bb9d3 by Siamashka Siamashka which fixes a compilation error with gcc 4.7
-rw-r--r--src/modules/bluetooth/ipc.c18
-rw-r--r--src/modules/bluetooth/ipc.h2
-rw-r--r--src/modules/bluetooth/sbc/sbc_primitives.h2
3 files changed, 11 insertions, 11 deletions
diff --git a/src/modules/bluetooth/ipc.c b/src/modules/bluetooth/ipc.c
index 669eeef57..02d956b1a 100644
--- a/src/modules/bluetooth/ipc.c
+++ b/src/modules/bluetooth/ipc.c
@@ -56,19 +56,19 @@ int bt_audio_service_open(void)
sk = socket(PF_LOCAL, SOCK_STREAM, 0);
if (sk < 0) {
- err = errno;
+ err = -errno;
fprintf(stderr, "%s: Cannot open socket: %s (%d)\n",
- __FUNCTION__, strerror(err), err);
- errno = err;
+ __FUNCTION__, strerror(-err), -err);
+ errno = -err;
return -1;
}
if (connect(sk, (struct sockaddr *) &addr, sizeof(addr)) < 0) {
- err = errno;
+ err = -errno;
fprintf(stderr, "%s: connect() failed: %s (%d)\n",
- __FUNCTION__, strerror(err), err);
+ __FUNCTION__, strerror(-err), -err);
close(sk);
- errno = err;
+ errno = -err;
return -1;
}
@@ -96,10 +96,10 @@ int bt_audio_service_get_data_fd(int sk)
ret = recvmsg(sk, &msgh, 0);
if (ret < 0) {
- err = errno;
+ err = -errno;
fprintf(stderr, "%s: Unable to receive fd: %s (%d)\n",
- __FUNCTION__, strerror(err), err);
- errno = err;
+ __FUNCTION__, strerror(-err), -err);
+ errno = -err;
return -1;
}
diff --git a/src/modules/bluetooth/ipc.h b/src/modules/bluetooth/ipc.h
index 77c57d3b8..61ae019ce 100644
--- a/src/modules/bluetooth/ipc.h
+++ b/src/modules/bluetooth/ipc.h
@@ -265,7 +265,7 @@ struct bt_start_stream_rsp {
} __attribute__ ((packed));
/* This message is followed by one byte of data containing the stream data fd
- as ancilliary data */
+ as ancillary data */
struct bt_new_stream_ind {
bt_audio_msg_header_t h;
} __attribute__ ((packed));
diff --git a/src/modules/bluetooth/sbc/sbc_primitives.h b/src/modules/bluetooth/sbc/sbc_primitives.h
index 3fec8d5b5..17ad4f74d 100644
--- a/src/modules/bluetooth/sbc/sbc_primitives.h
+++ b/src/modules/bluetooth/sbc/sbc_primitives.h
@@ -31,7 +31,7 @@
#define SBC_X_BUFFER_SIZE 328
#ifdef __GNUC__
-#define SBC_ALWAYS_INLINE __attribute__((always_inline))
+#define SBC_ALWAYS_INLINE inline __attribute__((always_inline))
#else
#define SBC_ALWAYS_INLINE inline
#endif