mirror of
https://gitlab.isc.org/isc-projects/bind9
synced 2025-09-04 00:25:29 +00:00
remove extraneous spaces before semicolons
This commit is contained in:
@@ -15,7 +15,7 @@
|
||||
* WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
|
||||
*/
|
||||
|
||||
/* $Id: base64.c,v 1.26 2003/04/17 06:04:13 marka Exp $ */
|
||||
/* $Id: base64.c,v 1.27 2003/10/03 06:12:33 marka Exp $ */
|
||||
|
||||
#include <config.h>
|
||||
|
||||
@@ -191,7 +191,7 @@ isc_base64_tobuffer(isc_lex_t *lexer, isc_buffer_t *target, int length) {
|
||||
if (token.type != isc_tokentype_string)
|
||||
break;
|
||||
tr = &token.value.as_textregion;
|
||||
for (i = 0;i < tr->length; i++)
|
||||
for (i = 0; i < tr->length; i++)
|
||||
RETERR(base64_decode_char(&ctx, tr->base[i]));
|
||||
}
|
||||
if (ctx.length < 0 && !ctx.seen_end)
|
||||
|
@@ -15,7 +15,7 @@
|
||||
* WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
|
||||
*/
|
||||
|
||||
/* $Id: hex.c,v 1.12 2002/02/20 03:35:22 marka Exp $ */
|
||||
/* $Id: hex.c,v 1.13 2003/10/03 06:12:33 marka Exp $ */
|
||||
|
||||
#include <config.h>
|
||||
|
||||
@@ -144,7 +144,7 @@ isc_hex_tobuffer(isc_lex_t *lexer, isc_buffer_t *target, int length) {
|
||||
if (token.type != isc_tokentype_string)
|
||||
break;
|
||||
tr = &token.value.as_textregion;
|
||||
for (i = 0;i < tr->length; i++)
|
||||
for (i = 0; i < tr->length; i++)
|
||||
RETERR(hex_decode_char(&ctx, tr->base[i]));
|
||||
}
|
||||
if (ctx.length < 0)
|
||||
|
@@ -15,7 +15,7 @@
|
||||
* WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
|
||||
*/
|
||||
|
||||
/* $Id: random.c,v 1.19 2003/10/01 00:58:07 marka Exp $ */
|
||||
/* $Id: random.c,v 1.20 2003/10/03 06:12:33 marka Exp $ */
|
||||
|
||||
#include <config.h>
|
||||
|
||||
@@ -82,7 +82,7 @@ isc_random_get(isc_uint32_t *val)
|
||||
* rand()'s lower bits are not random.
|
||||
* rand()'s upper bit is zero.
|
||||
*/
|
||||
*val = ((rand() >> 4) & 0xffff) | ((rand() << 12) & 0xffff0000) ;
|
||||
*val = ((rand() >> 4) & 0xffff) | ((rand() << 12) & 0xffff0000);
|
||||
#else
|
||||
*val = arc4random();
|
||||
#endif
|
||||
|
@@ -15,7 +15,7 @@
|
||||
* WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
|
||||
*/
|
||||
|
||||
/* $Id: ifiter_ioctl.c,v 1.39 2003/05/11 02:24:11 marka Exp $ */
|
||||
/* $Id: ifiter_ioctl.c,v 1.40 2003/10/03 06:12:34 marka Exp $ */
|
||||
|
||||
/*
|
||||
* Obtain the list of network interfaces using the SIOCGLIFCONF ioctl.
|
||||
@@ -416,7 +416,7 @@ linux_if_inet6_current(isc_interfaceiter_t *iter) {
|
||||
return (ISC_R_FAILURE);
|
||||
if (strlen(address) != 32)
|
||||
return (ISC_R_FAILURE);
|
||||
for (i = 0; i < 16 ; i++) {
|
||||
for (i = 0; i < 16; i++) {
|
||||
unsigned char byte;
|
||||
static const char hex[] = "0123456789abcdef";
|
||||
byte = ((index(hex, address[i * 2]) - hex) << 4) |
|
||||
@@ -430,7 +430,7 @@ linux_if_inet6_current(isc_interfaceiter_t *iter) {
|
||||
isc_netaddr_setzone(&iter->current.address,
|
||||
(isc_uint32_t)ifindex);
|
||||
}
|
||||
for (i = 0; i < 16 ; i++) {
|
||||
for (i = 0; i < 16; i++) {
|
||||
if (prefix > 8) {
|
||||
addr6.s6_addr[i] = 0xff;
|
||||
prefix -= 8;
|
||||
|
@@ -15,7 +15,7 @@
|
||||
* WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
|
||||
*/
|
||||
|
||||
/* $Id: socket.c,v 1.23 2003/09/11 01:49:17 marka Exp $ */
|
||||
/* $Id: socket.c,v 1.24 2003/10/03 06:12:34 marka Exp $ */
|
||||
|
||||
/* This code has been rewritten to take advantage of Windows Sockets
|
||||
* I/O Completion Ports and Events. I/O Completion Ports is ONLY
|
||||
@@ -912,7 +912,7 @@ internal_sendmsg(isc_socket_t *sock, IoCompletionInfo *lpo,
|
||||
case WSA_IO_INCOMPLETE :
|
||||
case WSA_WAIT_IO_COMPLETION :
|
||||
case WSA_IO_PENDING :
|
||||
break ;
|
||||
break;
|
||||
|
||||
default :
|
||||
return (-1);
|
||||
@@ -957,7 +957,7 @@ internal_recvmsg(isc_socket_t *sock, IoCompletionInfo *lpo,
|
||||
case WSA_IO_INCOMPLETE :
|
||||
case WSA_WAIT_IO_COMPLETION :
|
||||
case WSA_IO_PENDING :
|
||||
break ;
|
||||
break;
|
||||
|
||||
default :
|
||||
return (-1);
|
||||
@@ -1294,7 +1294,7 @@ dump_msg(struct msghdr *msg, isc_socket_t *sock) {
|
||||
printf("MSGHDR %p, Socket #: %u\n", msg, sock->fd);
|
||||
printf("\tname %p, namelen %d\n", msg->msg_name, msg->msg_namelen);
|
||||
printf("\tiov %p, iovlen %d\n", msg->msg_iov, msg->msg_iovlen);
|
||||
for (i = 0 ; i < (unsigned int)msg->msg_iovlen ; i++)
|
||||
for (i = 0; i < (unsigned int)msg->msg_iovlen; i++)
|
||||
printf("\t\t%d\tbase %p, len %d\n", i,
|
||||
msg->msg_iov[i].buf,
|
||||
msg->msg_iov[i].len);
|
||||
|
@@ -15,7 +15,7 @@
|
||||
* WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
|
||||
*/
|
||||
|
||||
/* $Id: syslog.c,v 1.6 2002/08/03 01:34:14 mayer Exp $ */
|
||||
/* $Id: syslog.c,v 1.7 2003/10/03 06:12:34 marka Exp $ */
|
||||
|
||||
#include <config.h>
|
||||
|
||||
@@ -78,7 +78,7 @@ isc_syslog_facilityfromstring(const char *str, int *facilityp) {
|
||||
REQUIRE(str != NULL);
|
||||
REQUIRE(facilityp != NULL);
|
||||
|
||||
for (i = 0 ; facilities[i].strval != NULL ; i++) {
|
||||
for (i = 0; facilities[i].strval != NULL; i++) {
|
||||
if (strcasecmp(facilities[i].strval, str) == 0) {
|
||||
*facilityp = facilities[i].val;
|
||||
return (ISC_R_SUCCESS);
|
||||
|
Reference in New Issue
Block a user