Remove EOL whitespace.
Reviewed by: alfred
This commit is contained in:
parent
074df01866
commit
7377f0d190
@ -73,11 +73,11 @@ static void filt_sowdetach(struct knote *kn);
|
||||
static int filt_sowrite(struct knote *kn, long hint);
|
||||
static int filt_solisten(struct knote *kn, long hint);
|
||||
|
||||
static struct filterops solisten_filtops =
|
||||
static struct filterops solisten_filtops =
|
||||
{ 1, NULL, filt_sordetach, filt_solisten };
|
||||
static struct filterops soread_filtops =
|
||||
{ 1, NULL, filt_sordetach, filt_soread };
|
||||
static struct filterops sowrite_filtops =
|
||||
static struct filterops sowrite_filtops =
|
||||
{ 1, NULL, filt_sowdetach, filt_sowrite };
|
||||
|
||||
struct vm_zone *socket_zone;
|
||||
@ -200,7 +200,7 @@ sodealloc(so)
|
||||
&so->so_snd.sb_hiwat, 0, RLIM_INFINITY);
|
||||
#ifdef INET
|
||||
if (so->so_accf != NULL) {
|
||||
if (so->so_accf->so_accept_filter != NULL &&
|
||||
if (so->so_accf->so_accept_filter != NULL &&
|
||||
so->so_accf->so_accept_filter->accf_destroy != NULL) {
|
||||
so->so_accf->so_accept_filter->accf_destroy(so);
|
||||
}
|
||||
@ -1017,7 +1017,7 @@ do_setopt_accept_filter(so, sopt)
|
||||
/* removing the filter */
|
||||
if (sopt == NULL) {
|
||||
if (af != NULL) {
|
||||
if (af->so_accept_filter != NULL &&
|
||||
if (af->so_accept_filter != NULL &&
|
||||
af->so_accept_filter->accf_destroy != NULL) {
|
||||
af->so_accept_filter->accf_destroy(so);
|
||||
}
|
||||
@ -1322,7 +1322,7 @@ sogetopt(so, sopt)
|
||||
FREE(afap, M_TEMP);
|
||||
break;
|
||||
#endif
|
||||
|
||||
|
||||
case SO_LINGER:
|
||||
l.l_onoff = so->so_options & SO_LINGER;
|
||||
l.l_linger = so->so_linger;
|
||||
@ -1376,7 +1376,7 @@ sogetopt(so, sopt)
|
||||
tv.tv_sec = optval / hz;
|
||||
tv.tv_usec = (optval % hz) * tick;
|
||||
error = sooptcopyout(sopt, &tv, sizeof tv);
|
||||
break;
|
||||
break;
|
||||
|
||||
default:
|
||||
error = ENOPROTOOPT;
|
||||
@ -1590,7 +1590,7 @@ filt_soread(struct knote *kn, long hint)
|
||||
|
||||
kn->kn_data = so->so_rcv.sb_cc;
|
||||
if (so->so_state & SS_CANTRCVMORE) {
|
||||
kn->kn_flags |= EV_EOF;
|
||||
kn->kn_flags |= EV_EOF;
|
||||
kn->kn_fflags = so->so_error;
|
||||
return (1);
|
||||
}
|
||||
@ -1621,7 +1621,7 @@ filt_sowrite(struct knote *kn, long hint)
|
||||
|
||||
kn->kn_data = sbspace(&so->so_snd);
|
||||
if (so->so_state & SS_CANTSENDMORE) {
|
||||
kn->kn_flags |= EV_EOF;
|
||||
kn->kn_flags |= EV_EOF;
|
||||
kn->kn_fflags = so->so_error;
|
||||
return (1);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user