diff options
author | Colin Guthrie <colin@mageia.org> | 2012-02-24 21:22:38 +0000 |
---|---|---|
committer | Colin Guthrie <colin@mageia.org> | 2012-02-24 21:22:41 +0000 |
commit | 3927b4b60716314a3db53587f90ce0e3c13c0197 (patch) | |
tree | 7de1fbc86bb124968d4ee225cc1d822b54b12381 | |
parent | 0b421f0d93f691ccd95d3999a1a9045caee76671 (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.c | 18 | ||||
-rw-r--r-- | src/modules/bluetooth/ipc.h | 2 | ||||
-rw-r--r-- | src/modules/bluetooth/sbc/sbc_primitives.h | 2 |
3 files changed, 11 insertions, 11 deletions
diff --git a/src/modules/bluetooth/ipc.c b/src/modules/bluetooth/ipc.c index 669eeef5..02d956b1 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 77c57d3b..61ae019c 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 3fec8d5b..17ad4f74 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 |