summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2014-04-07 20:58:36 -0400
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2014-04-07 21:02:47 -0400
commitc4acff1275e8d3a1c29c9b417b93f6cf6f10e258 (patch)
tree36008f4287b7c3438f1f61a012cda663f931ebb5
parent938d2699d2e818bd996614e89ea3d668200ad2a8 (diff)
test-dhcp-client: style fixes
-rw-r--r--src/libsystemd-network/test-dhcp-client.c17
1 files changed, 6 insertions, 11 deletions
diff --git a/src/libsystemd-network/test-dhcp-client.c b/src/libsystemd-network/test-dhcp-client.c
index 4420436f8a..a208b0d1e8 100644
--- a/src/libsystemd-network/test-dhcp-client.c
+++ b/src/libsystemd-network/test-dhcp-client.c
@@ -347,8 +347,7 @@ static uint8_t test_addr_acq_ack[] = {
};
static void test_addr_acq_acquired(sd_dhcp_client *client, int event,
- void *userdata)
-{
+ void *userdata) {
sd_event *e = userdata;
sd_dhcp_lease *lease;
struct in_addr addr;
@@ -377,8 +376,7 @@ static void test_addr_acq_acquired(sd_dhcp_client *client, int event,
sd_event_exit(e, 0);
}
-static int test_addr_acq_recv_request(size_t size, DHCPMessage *request)
-{
+static int test_addr_acq_recv_request(size_t size, DHCPMessage *request) {
uint16_t udp_check = 0;
uint8_t *msg_bytes = (uint8_t *)request;
int res;
@@ -409,8 +407,7 @@ static int test_addr_acq_recv_request(size_t size, DHCPMessage *request)
return 0;
};
-static int test_addr_acq_recv_discover(size_t size, DHCPMessage *discover)
-{
+static int test_addr_acq_recv_discover(size_t size, DHCPMessage *discover) {
uint16_t udp_check = 0;
uint8_t *msg_bytes = (uint8_t *)discover;
int res;
@@ -437,13 +434,12 @@ static int test_addr_acq_recv_discover(size_t size, DHCPMessage *discover)
assert_se(res == sizeof(test_addr_acq_offer));
if (verbose)
- printf(" send DHCP Offer\n");
+ printf(" sent DHCP Offer\n");
return 0;
}
-static void test_addr_acq(sd_event *e)
-{
+static void test_addr_acq(sd_event *e) {
usec_t time_now = now(CLOCK_MONOTONIC);
sd_dhcp_client *client;
int res, r;
@@ -488,8 +484,7 @@ static void test_addr_acq(sd_event *e)
xid = 0;
}
-int main(int argc, char *argv[])
-{
+int main(int argc, char *argv[]) {
sd_event *e;
assert_se(sd_event_new(&e) >= 0);