diff options
author | Archie Pusaka <apusaka@chromium.org> | 2021-09-15 16:32:05 +0800 |
---|---|---|
committer | Marcel Holtmann <marcel@holtmann.org> | 2021-09-21 10:51:54 +0200 |
commit | 7dd00605d1d5283d193498707987d9c197339ee7 (patch) | |
tree | fa49ccdabf900168b67b6092cadfdf6638fb7076 /src/sdpd-server.c | |
parent | d21177002d1088cd3fdd5cd6290ff9bd1edd74d7 (diff) | |
download | bluez-7dd00605d1d5283d193498707987d9c197339ee7.tar.gz |
src: Inclusive language changes
BT core spec 5.3 promotes the usage of inclusive languages.
This CL replaces some terms with the more appropriate counterparts,
such as "central", "peripheral", "accept list", and "reject list".
Note that some suggestions come from
https://specificationrefs.bluetooth.com/language-mapping/Appropriate_Language_Mapping_Table.pdf
Also use "primary" to refer the global mgmt struct.
Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
Diffstat (limited to 'src/sdpd-server.c')
-rw-r--r-- | src/sdpd-server.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/sdpd-server.c b/src/sdpd-server.c index 306b92a44..9f4b51dac 100644 --- a/src/sdpd-server.c +++ b/src/sdpd-server.c @@ -41,7 +41,7 @@ static int l2cap_sock = -1, unix_sock = -1; * l2cap and unix sockets over which discovery and registration clients * access us respectively */ -static int init_server(uint16_t mtu, int master, int compat) +static int init_server(uint16_t mtu, int central, int compat) { struct l2cap_options opts; struct sockaddr_l2 l2addr; @@ -71,7 +71,7 @@ static int init_server(uint16_t mtu, int master, int compat) return -1; } - if (master) { + if (central) { int opt = L2CAP_LM_MASTER; if (setsockopt(l2cap_sock, SOL_L2CAP, L2CAP_LM, &opt, sizeof(opt)) < 0) { error("setsockopt: %s", strerror(errno)); @@ -218,12 +218,12 @@ static gboolean io_accept_event(GIOChannel *chan, GIOCondition cond, gpointer da int start_sdp_server(uint16_t mtu, uint32_t flags) { int compat = flags & SDP_SERVER_COMPAT; - int master = flags & SDP_SERVER_MASTER; + int central = flags & SDP_SERVER_CENTRAL; GIOChannel *io; info("Starting SDP server"); - if (init_server(mtu, master, compat) < 0) { + if (init_server(mtu, central, compat) < 0) { error("Server initialization failed"); return -1; } |