summaryrefslogtreecommitdiff
path: root/src/libsystemd-bus/bus-socket.c
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2013-12-03 18:13:48 +0100
committerLennart Poettering <lennart@poettering.net>2013-12-03 18:14:50 +0100
commit0461f8cdc1d7b4afee2f2ff40fcaa3c7e26c662c (patch)
tree86005fcf71c45208e919676235d80905d3d12f26 /src/libsystemd-bus/bus-socket.c
parent6c045c0b4c49c88a1d3b9360c05efa5084796d2d (diff)
bus: internalize a lot of protocol definitions
We shouldn export what isn't necessary or useful to clients, so let's add the protocol definitions we only need internally into a private header.
Diffstat (limited to 'src/libsystemd-bus/bus-socket.c')
-rw-r--r--src/libsystemd-bus/bus-socket.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/libsystemd-bus/bus-socket.c b/src/libsystemd-bus/bus-socket.c
index d7d3b4dac5..69f78c9a58 100644
--- a/src/libsystemd-bus/bus-socket.c
+++ b/src/libsystemd-bus/bus-socket.c
@@ -874,10 +874,10 @@ static int bus_socket_read_message_need(sd_bus *bus, size_t *need) {
b = ((const uint32_t*) bus->rbuffer)[3];
e = ((const uint8_t*) bus->rbuffer)[0];
- if (e == SD_BUS_LITTLE_ENDIAN) {
+ if (e == BUS_LITTLE_ENDIAN) {
a = le32toh(a);
b = le32toh(b);
- } else if (e == SD_BUS_BIG_ENDIAN) {
+ } else if (e == BUS_BIG_ENDIAN) {
a = be32toh(a);
b = be32toh(b);
} else