summaryrefslogtreecommitdiffstats
path: root/usr.sbin/bluetooth
diff options
context:
space:
mode:
authorkan <kan@FreeBSD.org>2004-07-28 07:20:04 +0000
committerkan <kan@FreeBSD.org>2004-07-28 07:20:04 +0000
commitc8e1a3d9de56905f7ad926bcd808a4412886abf9 (patch)
treedf7b615c9bed80c16a40729d4c4177b5ed9ff269 /usr.sbin/bluetooth
parentbc35f3d1a7fbce02f757b2c151b158ed43bfe96e (diff)
downloadFreeBSD-src-c8e1a3d9de56905f7ad926bcd808a4412886abf9.zip
FreeBSD-src-c8e1a3d9de56905f7ad926bcd808a4412886abf9.tar.gz
Avoid casts as lvalues.
Diffstat (limited to 'usr.sbin/bluetooth')
-rw-r--r--usr.sbin/bluetooth/sdpd/profile.c9
1 files changed, 6 insertions, 3 deletions
diff --git a/usr.sbin/bluetooth/sdpd/profile.c b/usr.sbin/bluetooth/sdpd/profile.c
index d49929f..3ba0159 100644
--- a/usr.sbin/bluetooth/sdpd/profile.c
+++ b/usr.sbin/bluetooth/sdpd/profile.c
@@ -125,7 +125,8 @@ common_profile_create_service_class_id_list(
for (; datalen > 0; datalen --) {
SDP_PUT8(SDP_DATA_UUID16, buf);
- SDP_PUT16(*((uint16_t const *)data)++, buf);
+ SDP_PUT16(*((uint16_t const *)data), buf);
+ data += sizeof(uint16_t);
}
return (2 + len);
@@ -158,9 +159,11 @@ common_profile_create_bluetooth_profile_descriptor_list(
SDP_PUT8(SDP_DATA_SEQ8, buf);
SDP_PUT8(6, buf);
SDP_PUT8(SDP_DATA_UUID16, buf);
- SDP_PUT16(*((uint16_t const *)data)++, buf);
+ SDP_PUT16(*((uint16_t const *)data), buf);
+ data += sizeof(uint16_t);
SDP_PUT8(SDP_DATA_UINT16, buf);
- SDP_PUT16(*((uint16_t const *)data)++, buf);
+ SDP_PUT16(*((uint16_t const *)data), buf);
+ data += sizeof(uint16_t);
}
return (2 + len);
OpenPOWER on IntegriCloud