summaryrefslogtreecommitdiffstats
path: root/audio/unix.c
diff options
context:
space:
mode:
authorJohan Hedberg <johan.hedberg@nokia.com>2007-12-07 06:18:59 +0000
committerJohan Hedberg <johan.hedberg@nokia.com>2007-12-07 06:18:59 +0000
commit1ddd76afa25d775788e3762ab731cad80f8ffe56 (patch)
tree81b2ce9a73db61b687f961df6f3e5dba31477aaf /audio/unix.c
parent721d249e314b0591274436594be56805bf5a2822 (diff)
Minor coding style fixes
Diffstat (limited to 'audio/unix.c')
-rw-r--r--audio/unix.c16
1 files changed, 9 insertions, 7 deletions
diff --git a/audio/unix.c b/audio/unix.c
index 442dca79..d3e7485c 100644
--- a/audio/unix.c
+++ b/audio/unix.c
@@ -122,10 +122,10 @@ static void client_free(struct unix_client *client)
g_free(client);
}
-/* Pass file descriptor through local domain sockets (AF_LOCAL, formerly AF_UNIX)
-and the sendmsg() system call with the cmsg_type field of a "struct cmsghdr" set
-to SCM_RIGHTS and the data being an integer value equal to the handle of the
-file descriptor to be passed.*/
+/* Pass file descriptor through local domain sockets (AF_LOCAL, formerly
+ * AF_UNIX) and the sendmsg() system call with the cmsg_type field of a "struct
+ * cmsghdr" set to SCM_RIGHTS and the data being an integer value equal to the
+ * handle of the file descriptor to be passed. */
static int unix_sendmsg_fd(int sock, int fd)
{
char cmsg_b[CMSG_SPACE(sizeof(int))], m = 'm';
@@ -397,7 +397,7 @@ failed:
static void a2dp_config_complete(struct avdtp *session, struct a2dp_sep *sep,
struct avdtp_stream *stream,
struct avdtp_error *err,
- void *user_data)
+ void *user_data)
{
struct unix_client *client = user_data;
char buf[BT_AUDIO_IPC_PACKET_SIZE];
@@ -420,7 +420,8 @@ static void a2dp_config_complete(struct avdtp *session, struct a2dp_sep *sep,
a2dp->sep = sep;
a2dp->stream = stream;
- if (!avdtp_stream_get_transport(stream, &client->data_fd, &imtu, &omtu, &caps)) {
+ if (!avdtp_stream_get_transport(stream, &client->data_fd, &imtu, &omtu,
+ &caps)) {
error("Unable to get stream transport");
goto failed;
}
@@ -1027,7 +1028,8 @@ int unix_init(void)
}
if (bind(sk, (struct sockaddr *) &addr, sizeof(addr)) < 0) {
- error("Can't bind unix socket: %s (%d)", strerror(errno), errno);
+ error("Can't bind unix socket: %s (%d)", strerror(errno),
+ errno);
close(sk);
return -1;
}