summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJose Antonio Santos Cadenas <santoscadenas@gmail.com>2010-05-07 00:27:10 +0200
committerJohan Hedberg <johan.hedberg@nokia.com>2010-05-07 01:47:59 +0300
commit6968c52091ad2f85038e5b2903b61cc78f3d29c9 (patch)
tree90f47423593afef2e590f344bd212f6fe8b9b23a
parent8c83ffe7c3c1c7872b1c273a0c51d770cebcdfb3 (diff)
downloadbluez-6968c52091ad2f85038e5b2903b61cc78f3d29c9.tar.gz
Remove extra spaces in test dir
-rw-r--r--test/hciemu.c6
-rw-r--r--test/hstest.c2
-rw-r--r--test/rctest.c10
-rw-r--r--test/scotest.c2
-rw-r--r--test/test-textfile.c4
5 files changed, 12 insertions, 12 deletions
diff --git a/test/hciemu.c b/test/hciemu.c
index 457add46a..a20374f32 100644
--- a/test/hciemu.c
+++ b/test/hciemu.c
@@ -295,7 +295,7 @@ static void command_complete(uint16_t ogf, uint16_t ocf, int plen, void *data)
he = (void *) ptr; ptr += HCI_EVENT_HDR_SIZE;
he->evt = EVT_CMD_COMPLETE;
- he->plen = EVT_CMD_COMPLETE_SIZE + plen;
+ he->plen = EVT_CMD_COMPLETE_SIZE + plen;
cc = (void *) ptr; ptr += EVT_CMD_COMPLETE_SIZE;
@@ -327,7 +327,7 @@ static void connect_request(struct vhci_conn *conn)
he = (void *) ptr; ptr += HCI_EVENT_HDR_SIZE;
he->evt = EVT_CONN_REQUEST;
- he->plen = EVT_CONN_REQUEST_SIZE;
+ he->plen = EVT_CONN_REQUEST_SIZE;
cr = (void *) ptr; ptr += EVT_CONN_REQUEST_SIZE;
@@ -355,7 +355,7 @@ static void connect_complete(struct vhci_conn *conn)
he = (void *) ptr; ptr += HCI_EVENT_HDR_SIZE;
he->evt = EVT_CONN_COMPLETE;
- he->plen = EVT_CONN_COMPLETE_SIZE;
+ he->plen = EVT_CONN_COMPLETE_SIZE;
cc = (void *) ptr; ptr += EVT_CONN_COMPLETE_SIZE;
diff --git a/test/hstest.c b/test/hstest.c
index f24bc33c7..08f2257df 100644
--- a/test/hstest.c
+++ b/test/hstest.c
@@ -277,7 +277,7 @@ int main(int argc, char *argv[])
case PLAY:
rlen = read(fd, buf, rlen);
- wlen = 0;
+ wlen = 0;
p = buf;
while (rlen > sco_mtu) {
wlen += write(sd, p, sco_mtu);
diff --git a/test/rctest.c b/test/rctest.c
index a938a541f..b3804f50d 100644
--- a/test/rctest.c
+++ b/test/rctest.c
@@ -436,7 +436,7 @@ static void recv_mode(int sk)
if (r < 0)
syslog(LOG_ERR, "Read failed: %s (%d)",
strerror(errno), errno);
- return;
+ return;
}
if (timestamp) {
@@ -459,15 +459,15 @@ static void recv_mode(int sk)
seq = sq;
}
seq++;
-
+
/* Check length */
l = btohs(*(uint16_t *) (buf + 4));
if (r != l) {
syslog(LOG_INFO, "size missmatch: %d -> %d", r, l);
continue;
}
-
- /* Verify data */
+
+ /* Verify data */
for (i = 6; i < r; i++) {
if (buf[i] != 0x7f)
syslog(LOG_INFO, "data missmatch: byte %d 0x%2.2x", i, buf[i]);
@@ -511,7 +511,7 @@ static void do_send(int sk)
*(uint32_t *) buf = htobl(seq);
*(uint16_t *) (buf + 4) = htobs(data_size);
seq++;
-
+
if (send(sk, buf, data_size, 0) <= 0) {
syslog(LOG_ERR, "Send failed: %s (%d)",
strerror(errno), errno);
diff --git a/test/scotest.c b/test/scotest.c
index a3d3ed20e..50b622aec 100644
--- a/test/scotest.c
+++ b/test/scotest.c
@@ -230,7 +230,7 @@ static void recv_mode(int sk)
if (r < 0)
syslog(LOG_ERR, "Read failed: %s (%d)",
strerror(errno), errno);
- return;
+ return;
}
total += r;
}
diff --git a/test/test-textfile.c b/test/test-textfile.c
index ab2f51316..970e9e77b 100644
--- a/test/test-textfile.c
+++ b/test/test-textfile.c
@@ -65,7 +65,7 @@ int main(int argc, char *argv[])
sprintf(key, "00:00:00:00:00:00");
- if (textfile_del(filename, key) < 0)
+ if (textfile_del(filename, key) < 0)
fprintf(stderr, "%s (%d)\n", strerror(errno), errno);
memset(value, 0, sizeof(value));
@@ -88,7 +88,7 @@ int main(int argc, char *argv[])
if (textfile_put(filename, key, value) < 0)
fprintf(stderr, "%s (%d)\n", strerror(errno), errno);
- if (textfile_del(filename, key) < 0)
+ if (textfile_del(filename, key) < 0)
fprintf(stderr, "%s (%d)\n", strerror(errno), errno);
str = textfile_get(filename, key);