0
0
mirror of https://gitlab.nic.cz/labs/bird.git synced 2024-12-23 02:01:55 +00:00

Minor change to make code more readable.

This commit is contained in:
Pavel Machek 2000-03-23 12:08:40 +00:00
parent ff8ed63285
commit 772f489932

View File

@ -116,15 +116,8 @@ rip_tx( sock *s )
DBG( "Sending to %I\n", s->daddr ); DBG( "Sending to %I\n", s->daddr );
do { do {
if (c->done) { if (c->done)
im_done: goto done;
DBG( "Looks like I'm" );
c->rif->busy = NULL;
rem_node(NODE c);
mb_free(c);
DBG( " done\n" );
return;
}
DBG( "Preparing packet to send: " ); DBG( "Preparing packet to send: " );
@ -159,14 +152,12 @@ rip_tx( sock *s )
if (!i) { if (!i) {
DBG( "not sending NULL update\n" ); DBG( "not sending NULL update\n" );
c->done = 1; c->done = 1;
goto im_done; goto done;
}
else {
if (ipa_nonzero(c->daddr))
i = sk_send_to( s, packetlen, c->daddr, c->dport );
else
i = sk_send( s, packetlen );
} }
if (ipa_nonzero(c->daddr))
i = sk_send_to( s, packetlen, c->daddr, c->dport );
else
i = sk_send( s, packetlen );
DBG( "it wants more\n" ); DBG( "it wants more\n" );
@ -176,6 +167,13 @@ rip_tx( sock *s )
DBG( "blocked\n" ); DBG( "blocked\n" );
return; return;
done:
DBG( "Looks like I'm" );
c->rif->busy = NULL;
rem_node(NODE c);
mb_free(c);
DBG( " done\n" );
return;
} }
static void static void