]> code.delx.au - pulseaudio/commitdiff
bluetooth: Run update-sbc
authorColin Guthrie <colin@mageia.org>
Fri, 24 Feb 2012 21:22:38 +0000 (21:22 +0000)
committerColin Guthrie <colin@mageia.org>
Fri, 24 Feb 2012 21:22:41 +0000 (21:22 +0000)
This is primarily for the bluez commit 03bb9d3 by Siamashka Siamashka
which fixes a compilation error with gcc 4.7

src/modules/bluetooth/ipc.c
src/modules/bluetooth/ipc.h
src/modules/bluetooth/sbc/sbc_primitives.h

index 669eeef5717b70d8a6e0c244e6ad4002d883a20e..02d956b1ac8a2f2d88616c184f30274daddef067 100644 (file)
@@ -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;
        }
 
index 77c57d3b849c4176b192744b98d454d726a1dc8d..61ae019cef4a0df99a630e984c1157157c5cecdb 100644 (file)
@@ -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));
index 3fec8d5b5209c5abbace2e561d5b1e9dbf07c4c1..17ad4f74da4c042a607f36ce295e4321c89ab572 100644 (file)
@@ -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