summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarcel Holtmann <marcel@holtmann.org>2006-01-17 10:36:43 +0000
committerMarcel Holtmann <marcel@holtmann.org>2006-01-17 10:36:43 +0000
commit7d71cc206923e2eedbd3192dcc5f0b3fd9f63cef (patch)
tree474fdcdefc073a7048a1b0ab8b2a35ecd6949fe8
parent3b5b20a3873b4d52041baf1cb11fbd0965ed39b8 (diff)
Some whitespace cleanups
-rw-r--r--sdpd/service.c22
1 files changed, 11 insertions, 11 deletions
diff --git a/sdpd/service.c b/sdpd/service.c
index cd40541b..aa62a559 100644
--- a/sdpd/service.c
+++ b/sdpd/service.c
@@ -55,12 +55,12 @@ static sdp_record_t *extract_pdu_server(bdaddr_t *device, uint8_t *p, uint32_t h
*scanned = sdp_extract_seqtype(p, &dtd, &seqlen);
p += *scanned;
- lookAheadAttrId = ntohs(sdp_get_unaligned((uint16_t *)(p + sizeof(uint8_t))));
+ lookAheadAttrId = ntohs(sdp_get_unaligned((uint16_t *) (p + sizeof(uint8_t))));
SDPDBG("Look ahead attr id : %d\n", lookAheadAttrId);
if (lookAheadAttrId == SDP_ATTR_RECORD_HANDLE) {
- handle = ntohl(sdp_get_unaligned((uint32_t *)(p +
+ handle = ntohl(sdp_get_unaligned((uint32_t *) (p +
sizeof(uint8_t) + sizeof(uint16_t) +
sizeof(uint8_t))));
SDPDBG("SvcRecHandle : 0x%x\n", handle);
@@ -85,9 +85,9 @@ static sdp_record_t *extract_pdu_server(bdaddr_t *device, uint8_t *p, uint32_t h
int attrValueLength = 0;
SDPDBG("Extract PDU, sequenceLength: %d localExtractedLength: %d", seqlen, localExtractedLength);
- dtd = *(uint8_t *)p;
+ dtd = *(uint8_t *) p;
- attrId = ntohs(sdp_get_unaligned((uint16_t *)(p + attrSize)));
+ attrId = ntohs(sdp_get_unaligned((uint16_t *) (p + attrSize)));
attrSize += sizeof(uint16_t);
SDPDBG("DTD of attrId : %d Attr id : 0x%x \n", dtd, attrId);
@@ -169,7 +169,7 @@ int service_register_req(sdp_req_t *req, sdp_buf_t *rsp)
update_db_timestamp();
/* Build a rsp buffer */
- sdp_put_unaligned(htonl(rec->handle), (uint32_t *)rsp->data);
+ sdp_put_unaligned(htonl(rec->handle), (uint32_t *) rsp->data);
rsp->data_size = sizeof(uint32_t);
return 0;
@@ -189,16 +189,16 @@ int service_update_req(sdp_req_t *req, sdp_buf_t *rsp)
sdp_record_t *orec;
int status = 0, scanned = 0;
uint8_t *p = req->buf + sizeof(sdp_pdu_hdr_t);
- uint32_t handle = ntohl(sdp_get_unaligned((uint32_t *)p));
+ uint32_t handle = ntohl(sdp_get_unaligned((uint32_t *) p));
SDPDBG("");
SDPDBG("Svc Rec Handle: 0x%x\n", handle);
-
+
p += sizeof(uint32_t);
orec = sdp_record_find(handle);
-
+
SDPDBG("SvcRecOld: 0x%x\n", (uint32_t)orec);
if (orec) {
@@ -220,7 +220,7 @@ int service_update_req(sdp_req_t *req, sdp_buf_t *rsp)
status = SDP_INVALID_RECORD_HANDLE;
p = rsp->data;
- sdp_put_unaligned(htons(status), (uint16_t *)p);
+ sdp_put_unaligned(htons(status), (uint16_t *) p);
rsp->data_size = sizeof(uint16_t);
return status;
}
@@ -231,7 +231,7 @@ int service_update_req(sdp_req_t *req, sdp_buf_t *rsp)
int service_remove_req(sdp_req_t *req, sdp_buf_t *rsp)
{
uint8_t *p = req->buf + sizeof(sdp_pdu_hdr_t);
- uint32_t handle = ntohl(sdp_get_unaligned((uint32_t *)p));
+ uint32_t handle = ntohl(sdp_get_unaligned((uint32_t *) p));
sdp_record_t *rec;
int status = 0;
@@ -253,7 +253,7 @@ int service_remove_req(sdp_req_t *req, sdp_buf_t *rsp)
}
p = rsp->data;
- sdp_put_unaligned(htons(status), (uint16_t *)p);
+ sdp_put_unaligned(htons(status), (uint16_t *) p);
rsp->data_size = sizeof(uint16_t);
return status;