ppp: Minor style tweaks

This commit is contained in:
Denis Kenzior 2010-06-28 10:21:33 -05:00
parent 8246463ef3
commit cff81df606
1 changed files with 9 additions and 9 deletions

View File

@ -35,13 +35,13 @@
#include "gatppp.h" #include "gatppp.h"
#include "ppp.h" #include "ppp.h"
#define IPCP_SUPPORTED_CODES ((1 << PPPCP_CODE_TYPE_CONFIGURE_REQUEST) | \ #define IPCP_SUPPORTED_CODES ((1 << PPPCP_CODE_TYPE_CONFIGURE_REQUEST) | \
(1 << PPPCP_CODE_TYPE_CONFIGURE_ACK) | \ (1 << PPPCP_CODE_TYPE_CONFIGURE_ACK) | \
(1 << PPPCP_CODE_TYPE_CONFIGURE_NAK) | \ (1 << PPPCP_CODE_TYPE_CONFIGURE_NAK) | \
(1 << PPPCP_CODE_TYPE_CONFIGURE_REJECT) | \ (1 << PPPCP_CODE_TYPE_CONFIGURE_REJECT) | \
(1 << PPPCP_CODE_TYPE_TERMINATE_REQUEST) | \ (1 << PPPCP_CODE_TYPE_TERMINATE_REQUEST) | \
(1 << PPPCP_CODE_TYPE_TERMINATE_ACK) | \ (1 << PPPCP_CODE_TYPE_TERMINATE_ACK) | \
(1 << PPPCP_CODE_TYPE_CODE_REJECT)) (1 << PPPCP_CODE_TYPE_CODE_REJECT))
enum ipcp_option_types { enum ipcp_option_types {
IP_ADDRESSES = 1, IP_ADDRESSES = 1,
@ -76,7 +76,7 @@ struct ipcp_data {
gboolean is_server; gboolean is_server;
}; };
#define FILL_IP(options, req, type, var) \ #define FILL_IP(options, req, type, var) \
if (req) { \ if (req) { \
options[len] = type; \ options[len] = type; \
options[len + 1] = 6; \ options[len + 1] = 6; \
@ -435,7 +435,7 @@ static enum rcr_result ipcp_client_rcr(struct ipcp_data *ipcp,
return RCR_REJECT; return RCR_REJECT;
} }
/* Accept server IP address as peer's address */ /* Accept server IP address as peer's address */
if (peer_addr) { if (peer_addr) {
ipcp->peer_addr = peer_addr; ipcp->peer_addr = peer_addr;
return RCR_ACCEPT; return RCR_ACCEPT;