* 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>
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)
* 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>
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)
* 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>
* 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
* 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.
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) |
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;
* 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
case WSA_IO_INCOMPLETE :
case WSA_WAIT_IO_COMPLETION :
case WSA_IO_PENDING :
- break ;
+ break;
default :
return (-1);
case WSA_IO_INCOMPLETE :
case WSA_WAIT_IO_COMPLETION :
case WSA_IO_PENDING :
- break ;
+ break;
default :
return (-1);
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);
* 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>
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);
BIND_ERR_MSG, NULL, 1, 0, buf, NULL);
DeregisterEventSource(hNTAppLog);
-}
\ No newline at end of file
+}