remove spaces within tabs (\t( )+\t)

This commit is contained in:
Martin Willi
2009-09-04 15:00:19 +02:00
parent 323f9f990f
commit b9b8a98f47
45 changed files with 103 additions and 103 deletions
+2 -2
View File
@@ -926,7 +926,7 @@ static char* get_string(private_message_t *this, char *buf, int len)
while (enumerator->enumerate(enumerator, &payload))
{
written = snprintf(pos, len, " %N", payload_type_short_names,
payload->get_type(payload));
payload->get_type(payload));
if (written >= len || written < 0)
{
return buf;
@@ -937,7 +937,7 @@ static char* get_string(private_message_t *this, char *buf, int len)
{
notify_payload_t *notify = (notify_payload_t*)payload;
written = snprintf(pos, len, "(%N)", notify_type_short_names,
notify->get_notify_type(notify));
notify->get_notify_type(notify));
if (written >= len || written < 0)
{
return buf;
@@ -123,45 +123,45 @@ static status_t verify(private_configuration_attribute_t *this)
case INTERNAL_IP4_NBNS:
case INTERNAL_ADDRESS_EXPIRY:
case INTERNAL_IP4_DHCP:
if (this->attribute_length != 0 && this->attribute_length != 4)
{
if (this->attribute_length != 0 && this->attribute_length != 4)
{
failed = TRUE;
}
}
break;
case INTERNAL_IP4_SUBNET:
if (this->attribute_length != 0 && this->attribute_length != 8)
{
if (this->attribute_length != 0 && this->attribute_length != 8)
{
failed = TRUE;
}
}
break;
case INTERNAL_IP6_ADDRESS:
case INTERNAL_IP6_SUBNET:
if (this->attribute_length != 0 && this->attribute_length != 17)
{
if (this->attribute_length != 0 && this->attribute_length != 17)
{
failed = TRUE;
}
}
break;
case INTERNAL_IP6_DNS:
case INTERNAL_IP6_NBNS:
case INTERNAL_IP6_DHCP:
if (this->attribute_length != 0 && this->attribute_length != 16)
{
if (this->attribute_length != 0 && this->attribute_length != 16)
{
failed = TRUE;
}
}
break;
case SUPPORTED_ATTRIBUTES:
if (this->attribute_length % 2)
{
if (this->attribute_length % 2)
{
failed = TRUE;
}
}
break;
case APPLICATION_VERSION:
/* any length acceptable */
break;
/* any length acceptable */
break;
default:
DBG1(DBG_ENC, "unknown attribute type %N",
configuration_attribute_type_names, this->attribute_type);
break;
break;
}
if (failed)
+1 -1
View File
@@ -89,7 +89,7 @@ encoding_rule_t id_payload_encodings[] = {
/* Length of the whole payload*/
{ PAYLOAD_LENGTH, offsetof(private_id_payload_t, payload_length) },
/* 1 Byte ID type*/
{ U_INT_8, offsetof(private_id_payload_t, id_type) },
{ U_INT_8, offsetof(private_id_payload_t, id_type) },
/* 3 reserved bytes */
{ RESERVED_BYTE, 0 },
{ RESERVED_BYTE, 0 },
+1 -1
View File
@@ -51,7 +51,7 @@ struct nonce_payload_t {
/**
* Set the nonce value.
*
* @param nonce chunk containing the nonce, will be cloned
* @param nonce chunk containing the nonce, will be cloned
*/
void (*set_nonce) (nonce_payload_t *this, chunk_t nonce);
@@ -238,7 +238,7 @@ encoding_rule_t notify_payload_encodings[] = {
/* Notify message type as 16 bit field*/
{ U_INT_16, offsetof(private_notify_payload_t, notify_type) },
/* SPI as variable length field*/
{ SPI, offsetof(private_notify_payload_t, spi) },
{ SPI, offsetof(private_notify_payload_t, spi) },
/* Key Exchange Data is from variable size */
{ NOTIFICATION_DATA, offsetof(private_notify_payload_t, notification_data) }
};