Permalink
Browse files

Grammar fixes in debugging messages

  • Loading branch information...
1 parent 99b93f7 commit 47949592a8ce99880efe2eb633e14a0cff36bf24 @squadette committed May 4, 2009
Showing with 16 additions and 16 deletions.
  1. +9 −9 RadiusClass/main.cpp
  2. +5 −5 UserAcct.cpp
  3. +2 −2 UserAuth.cpp
View
@@ -288,7 +288,7 @@ int main_test (void)
//send the packet to the first server from the list
if (packet_access.radiusSend(server)<0)
{
- cerr << getTime() << "RADIUS-CLASS: Packet was not send.\n";
+ cerr << getTime() << "RADIUS-CLASS: Packet was not sent.\n";
}
//receive the packet, if the server doesn't response send the packet to the next server in list.
@@ -303,10 +303,10 @@ int main_test (void)
parseResponsePacket(&packet_access);
}
- //If the radius server denied the access or sends a ACCESS_CHALLANGE-packet.
+ //If the radius server denied the access or sends a ACCESS_CHALLENGE-packet.
else
{
- cerr << getTime() << "RADIUS-CLASS: Get ACCESS_REJECT or ACCESS_CHALLANGE-Packet.->ACCESS-DENIED.\n";
+ cerr << getTime() << "RADIUS-CLASS: Get ACCESS_REJECT or ACCESS_CHALLENGE-Packet.->ACCESS-DENIED.\n";
}
}
@@ -413,7 +413,7 @@ int main_test (void)
//send the packet_accounting_start
if (packet_accounting_start.radiusSend(server)<0)
{
- cerr << getTime() << "RADIUS-CLASS: BACKGROUND-ACCT: Packet was not send.\n";
+ cerr << getTime() << "RADIUS-CLASS: BACKGROUND-ACCT: Packet was not sent.\n";
}
//receive the response
@@ -422,7 +422,7 @@ int main_test (void)
//is is a accounting resopnse ?
if(packet_accounting_start.getCode()==ACCOUNTING_RESPONSE)
{
- cerr << getTime() << "RADIUS-CLASS: Get ACCOUNTING_RESPONSET-Packet.\n";
+ cerr << getTime() << "RADIUS-CLASS: Get ACCOUNTING_RESPONSE-Packet.\n";
}
}
@@ -542,7 +542,7 @@ int main_test (void)
//send the packet_accounting_update
if (packet_accounting_update.radiusSend(server)<0)
{
- cerr << getTime() << "RADIUS-CLASS: BACKGROUND-ACCT: Packet was not send.\n";
+ cerr << getTime() << "RADIUS-CLASS: BACKGROUND-ACCT: Packet was not sent.\n";
}
//receive the response
@@ -551,7 +551,7 @@ int main_test (void)
//is is a accounting resopnse ?
if(packet_accounting_update.getCode()==ACCOUNTING_RESPONSE)
{
- cerr << getTime() << "RADIUS-CLASS: BACKGROUND-ACCT: Get ACCOUNTING_RESPONSET-Packet.\n";
+ cerr << getTime() << "RADIUS-CLASS: BACKGROUND-ACCT: Get ACCOUNTING_RESPONSE-Packet.\n";
}
@@ -673,7 +673,7 @@ int main_test (void)
//send the packet_accounting_stop
if (packet_accounting_stop.radiusSend(server)<0)
{
- cerr << getTime() << "RADIUS-CLASS: BACKGROUND-ACCT: Packet was not send.\n";
+ cerr << getTime() << "RADIUS-CLASS: BACKGROUND-ACCT: Packet was not sent.\n";
}
//receive the response
@@ -682,7 +682,7 @@ int main_test (void)
//is is a accounting resopnse ?
if(packet_accounting_stop.getCode()==ACCOUNTING_RESPONSE)
{
- cerr << getTime() << "RADIUS-CLASS: BACKGROUND-ACCT: Get ACCOUNTING_RESPONSET-Packet.\n";
+ cerr << getTime() << "RADIUS-CLASS: BACKGROUND-ACCT: Get ACCOUNTING_RESPONSE-Packet.\n";
}
}
View
@@ -199,7 +199,7 @@ int UserAcct::sendUpdatePacket(PluginContext *context)
//send the packet to the server
if (packet.radiusSend( server, context->radiusconf.getNASIpAddress() )<0)
{
- cerr << getTime() << "RADIUS-PLUGIN: BACKGROUND-ACCT: Packet was not send.\n";
+ cerr << getTime() << "RADIUS-PLUGIN: BACKGROUND-ACCT: Packet was not sent.\n";
}
//get the response
@@ -209,7 +209,7 @@ int UserAcct::sendUpdatePacket(PluginContext *context)
if(packet.getCode()==ACCOUNTING_RESPONSE)
{
if (DEBUG (context->getVerbosity()))
- cerr << getTime() << "RADIUS-PLUGIN: BACKGROUND-ACCT: Get ACCOUNTING_RESPONSET-Packet.\n";
+ cerr << getTime() << "RADIUS-PLUGIN: BACKGROUND-ACCT: Get ACCOUNTING_RESPONSE-Packet.\n";
return 0;
@@ -346,7 +346,7 @@ int UserAcct::sendStartPacket(PluginContext * context)
//send the packet
if (packet.radiusSend( server, context->radiusconf.getNASIpAddress() )<0)
{
- cerr << getTime() << "RADIUS-PLUGIN: BACKGROUND-ACCT: Packet was not send.\n";
+ cerr << getTime() << "RADIUS-PLUGIN: BACKGROUND-ACCT: Packet was not sent.\n";
}
//receive the response
@@ -356,7 +356,7 @@ int UserAcct::sendStartPacket(PluginContext * context)
if(packet.getCode()==ACCOUNTING_RESPONSE)
{
if (DEBUG (context->getVerbosity()))
- cerr << getTime() << "RADIUS-PLUGIN: BACKGROUND-ACCT: Get ACCOUNTING_RESPONSET-Packet.\n";
+ cerr << getTime() << "RADIUS-PLUGIN: BACKGROUND-ACCT: Get ACCOUNTING_RESPONSE-Packet.\n";
return 0;
@@ -528,7 +528,7 @@ int UserAcct::sendStopPacket(PluginContext * context)
//send the packet
if (packet.radiusSend( server, context->radiusconf.getNASIpAddress() )<0)
{
- cerr << getTime() << "RADIUS-PLUGIN: BACKGROUND-ACCT: Packet was not send.\n";
+ cerr << getTime() << "RADIUS-PLUGIN: BACKGROUND-ACCT: Packet was not sent.\n";
}
//get the response
View
@@ -147,7 +147,7 @@ int UserAuth::sendAcceptRequestPacket(PluginContext * context)
//send the packet
if (packet.radiusSend( server, context->radiusconf.getNASIpAddress() )<0)
{
- cerr << getTime() << "RADIUS-PLUGIN: Packet was not send.\n";
+ cerr << getTime() << "RADIUS-PLUGIN: Packet was not sent.\n";
}
//receive the packet
if (packet.radiusReceive(serverlist, context->radiusconf.getNASIpAddress() )==0)
@@ -166,7 +166,7 @@ int UserAuth::sendAcceptRequestPacket(PluginContext * context)
}
else
{
- cerr << getTime() << "RADIUS-PLUGIN: Get ACCESS_REJECT or ACCESS_CHALLANGE-Packet.->ACCESS-DENIED.\n";
+ cerr << getTime() << "RADIUS-PLUGIN: Get ACCESS_REJECT or ACCESS_CHALLENGE-Packet.->ACCESS-DENIED.\n";
return 1;
}

0 comments on commit 4794959

Please sign in to comment.