ipfilter userland: Fix whitespace errors

Replace leading spaces with a tabs on affected lines.

MFC after:	1 month
This commit is contained in:
Cy Schubert 2021-12-21 21:11:44 -08:00
parent 80030b6cc7
commit 5e13b104a4
6 changed files with 20 additions and 20 deletions

View file

@ -1487,7 +1487,7 @@ static void topipstates(i6addr_t saddr, i6addr_t daddr, int sport, int dport,
getmaxyx(stdscr, maxy, maxx);
redraw = 1;
handle_resize = 0;
}
}
/* stop program? */
if (handle_break)

View file

@ -143,10 +143,10 @@ void MD5Update (MD5_CTX *mdContext, unsigned char *inBuf, unsigned int inLen)
/* transform if necessary */
if (mdi == 0x40) {
for (i = 0, ii = 0; i < 16; i++, ii += 4)
in[i] = (((UINT4)mdContext->in[ii+3]) << 24) |
(((UINT4)mdContext->in[ii+2]) << 16) |
(((UINT4)mdContext->in[ii+1]) << 8) |
((UINT4)mdContext->in[ii]);
in[i] = (((UINT4)mdContext->in[ii+3]) << 24) |
(((UINT4)mdContext->in[ii+2]) << 16) |
(((UINT4)mdContext->in[ii+1]) << 8) |
((UINT4)mdContext->in[ii]);
Transform (mdContext->buf, in);
mdi = 0;
}
@ -177,9 +177,9 @@ void MD5Final (unsigned char hash[], MD5_CTX *mdContext)
/* append length in bits and transform */
for (i = 0, ii = 0; i < 14; i++, ii += 4)
in[i] = (((UINT4)mdContext->in[ii+3]) << 24) |
(((UINT4)mdContext->in[ii+2]) << 16) |
(((UINT4)mdContext->in[ii+1]) << 8) |
((UINT4)mdContext->in[ii]);
(((UINT4)mdContext->in[ii+2]) << 16) |
(((UINT4)mdContext->in[ii+1]) << 8) |
((UINT4)mdContext->in[ii]);
Transform (mdContext->buf, in);
/* store buffer in digest */

View file

@ -1089,7 +1089,7 @@ setnodeaddr(int type, int role, void *ptr, char *arg)
} else if (type == IPLT_HASH) {
iphtent_t *node = ptr;
node->ipe_family = family;
node->ipe_family = family;
node->ipe_unit = role;
#ifdef USE_INET6

View file

@ -37,8 +37,8 @@
*/
int resolve(char *host, char *address)
{
struct hostent *hp;
u_long add;
struct hostent *hp;
u_long add;
add = inet_addr(host);
if (add == -1)

View file

@ -36,8 +36,8 @@ static const char rcsid[] = "@(#)$Id$";
*/
int resolve(char *host, char *address)
{
struct hostent *hp;
u_long add;
struct hostent *hp;
u_long add;
add = inet_addr(host);
if (add == -1)

View file

@ -337,15 +337,15 @@ send_packet(int nfd, int mtu, ip_t *ip, struct in_addr gwip)
ip_t *ip;
struct in_addr gwip;
{
switch (ip->ip_p)
{
case IPPROTO_TCP :
switch (ip->ip_p)
{
case IPPROTO_TCP :
( return send_tcp(nfd, mtu, ip, gwip));
case IPPROTO_UDP :
case IPPROTO_UDP :
( return send_udp(nfd, mtu, ip, gwip));
case IPPROTO_ICMP :
case IPPROTO_ICMP :
( return send_icmp(nfd, mtu, ip, gwip));
default :
default :
( return send_ip(nfd, mtu, ip, gwip, 1));
}
}
}