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_irc.c | |
parent | 603a2708879d64fbc0c4e66269000f4525895f2e (diff) | |
download | FreeBSD-src-95fdc0d64270a5c2ee2ae40815f48bf0e71216a6.zip FreeBSD-src-95fdc0d64270a5c2ee2ae40815f48bf0e71216a6.tar.gz |
Remove trailing whitespace
Diffstat (limited to 'lib/libalias/alias_irc.c')
-rw-r--r-- | lib/libalias/alias_irc.c | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/lib/libalias/alias_irc.c b/lib/libalias/alias_irc.c index 82c39e3..02a2bb2 100644 --- a/lib/libalias/alias_irc.c +++ b/lib/libalias/alias_irc.c @@ -49,7 +49,7 @@ __FBSDID("$FreeBSD$"); /* Includes */ #include <ctype.h> -#include <stdio.h> +#include <stdio.h> #include <string.h> #include <sys/types.h> #include <netinet/in_systm.h> @@ -69,14 +69,14 @@ AliasHandleIrcOut(struct ip *pip, /* IP packet to examine */ struct alias_link *link, /* Which link are we on? */ int maxsize /* Maximum size of IP packet including headers */ ) -{ +{ int hlen, tlen, dlen; struct in_addr true_addr; u_short true_port; char *sptr; struct tcphdr *tc; int i; /* Iterator through the source */ - + /* Calculate data length of TCP packet */ tc = (struct tcphdr *) ((char *) pip + (pip->ip_hl << 2)); hlen = (pip->ip_hl + tc->th_off) << 2; @@ -88,7 +88,7 @@ AliasHandleIrcOut(struct ip *pip, /* IP packet to examine */ return; /* Place string pointer at beginning of data */ - sptr = (char *) pip; + sptr = (char *) pip; sptr += hlen; maxsize -= hlen; /* We're interested in maximum size of data, not packet */ @@ -231,7 +231,7 @@ lFOUND_CTCP: { struct alias_link *dcc_link; struct in_addr destaddr; - + true_port = htons(org_port); true_addr.s_addr = htonl(org_addr); @@ -262,7 +262,7 @@ lFOUND_CTCP: alias_address = GetAliasAddress(link); n = snprintf(&newpacket[iCopy], - sizeof(newpacket)-iCopy, + sizeof(newpacket)-iCopy, "%lu ", (u_long)htonl(alias_address.s_addr)); if( n < 0 ) { DBprintf(("DCC packet construct failure.\n")); @@ -274,7 +274,7 @@ lFOUND_CTCP: } alias_port = GetAliasPort(dcc_link); n = snprintf(&newpacket[iCopy], - sizeof(newpacket)-iCopy, + sizeof(newpacket)-iCopy, "%u", htons(alias_port) ); if( n < 0 ) { DBprintf(("DCC packet construct failure.\n")); @@ -321,7 +321,7 @@ lFOUND_CTCP: /* Revise IP header */ { u_short new_len; - + new_len = htons(hlen + iCopy + copyat); DifferentialChecksum(&pip->ip_sum, &new_len, |