diff options
author | brian <brian@FreeBSD.org> | 2002-07-01 11:19:40 +0000 |
---|---|---|
committer | brian <brian@FreeBSD.org> | 2002-07-01 11:19:40 +0000 |
commit | 95fdc0d64270a5c2ee2ae40815f48bf0e71216a6 (patch) | |
tree | 7ac18556721e3d172be5151edc94d09c3b206d75 /lib/libalias/alias_proxy.c | |
parent | 603a2708879d64fbc0c4e66269000f4525895f2e (diff) | |
download | FreeBSD-src-95fdc0d64270a5c2ee2ae40815f48bf0e71216a6.zip FreeBSD-src-95fdc0d64270a5c2ee2ae40815f48bf0e71216a6.tar.gz |
Remove trailing whitespace
Diffstat (limited to 'lib/libalias/alias_proxy.c')
-rw-r--r-- | lib/libalias/alias_proxy.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/lib/libalias/alias_proxy.c b/lib/libalias/alias_proxy.c index 3bd007c..6c95ea9 100644 --- a/lib/libalias/alias_proxy.c +++ b/lib/libalias/alias_proxy.c @@ -39,7 +39,7 @@ __FBSDID("$FreeBSD$"); presently supported: addition of a [DEST addr port] string at the beginning a of tcp stream, or inclusion of an optional field in the IP header. - + There is one public API function: PacketAliasProxyRule() -- Adds and deletes proxy @@ -301,7 +301,7 @@ ProxyEncodeTcpStream(struct alias_link *link, /* Translate destination address and port to string form */ snprintf(buffer, sizeof(buffer) - 2, "[DEST %s %d]", inet_ntoa(GetProxyAddress (link)), (u_int) ntohs(GetProxyPort (link))); - + /* Pad string out to a multiple of two in length */ slen = strlen(buffer); switch (slen % 2) @@ -663,7 +663,7 @@ PacketAliasProxyRule(const char *cmd) else { *p = ' '; - + n = sscanf(token, "%s %s", s, str_server_port); if (n != 2) return -1; @@ -753,7 +753,7 @@ PacketAliasProxyRule(const char *cmd) src_addr = addr; src_mask = mask; } - else + else { dst_addr = addr; dst_mask = mask; @@ -799,7 +799,7 @@ PacketAliasProxyRule(const char *cmd) } if (strlen(str_server_port) != 0) - { + { int err; err = IpPort(str_server_port, proto, &server_port); |