diff options
author | Tom Gundersen <teg@jklm.no> | 2014-11-04 16:21:41 +0100 |
---|---|---|
committer | Tom Gundersen <teg@jklm.no> | 2014-11-05 16:54:22 +0100 |
commit | 9eec671331adeb3f9a81b390758000364388a042 (patch) | |
tree | ebc3a578184eccdf277df4bd56cf3e7ddf437760 | |
parent | 61c81750217af7492be86adde81b28e310cd5e82 (diff) |
sd-pppoe: whitespace
-rw-r--r-- | src/libsystemd-network/sd-pppoe.c | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/src/libsystemd-network/sd-pppoe.c b/src/libsystemd-network/sd-pppoe.c index 21ddaebdd2..075e10204b 100644 --- a/src/libsystemd-network/sd-pppoe.c +++ b/src/libsystemd-network/sd-pppoe.c @@ -698,8 +698,7 @@ static int pppoe_handle_message(sd_pppoe *ppp, struct pppoe_hdr *packet, struct return 0; } -static int pppoe_receive_message(sd_event_source *s, int fd, - uint32_t revents, void *userdata) { +static int pppoe_receive_message(sd_event_source *s, int fd, uint32_t revents, void *userdata) { sd_pppoe *ppp = userdata; _cleanup_free_ struct pppoe_hdr *packet = NULL; union sockaddr_union link = {}; @@ -721,11 +720,9 @@ static int pppoe_receive_message(sd_event_source *s, int fd, if (!packet) return -ENOMEM; - len = recvfrom(fd, packet, buflen, 0, - &link.sa, &addrlen); + len = recvfrom(fd, packet, buflen, 0, &link.sa, &addrlen); if (len < 0) { - log_warning("PPPoE: colud not receive message from raw socket: %s", - strerror(-r)); + log_warning("PPPoE: colud not receive message from raw socket: %s", strerror(-r)); return 0; } else if ((size_t)len < sizeof(struct pppoe_hdr)) return 0; |