Skip to content

Commit

Permalink
carrierroute: fix spelling errors catched by lintian #688
Browse files Browse the repository at this point in the history
  • Loading branch information
linuxmaniac committed Jun 29, 2016
1 parent bac77b2 commit 4e6b659
Show file tree
Hide file tree
Showing 11 changed files with 18 additions and 18 deletions.
4 changes: 2 additions & 2 deletions modules/carrierroute/README
Expand Up @@ -529,7 +529,7 @@ descavp)
prefix_matching at the given domain in the given carrier tree. The
Request URI is rewritten using rewrite_user and the given hash source
and algorithm. Returns -1 if there is no data found or an empty rewrite
host on the longest match is found. On sucess also the description is
host on the longest match is found. On success also the description is
stored in the given AVP (if obmitted, nothing is stored in an AVP).
This is useful if you need some additional informations that belongs to
each gw, like the destination or the number of channels.
Expand Down Expand Up @@ -1004,7 +1004,7 @@ domain register {
for example that indicates that ringing has happened. If this flag is
set, there will be no further forwarding, because next_domain is empty.
In the second and third routes are certain gateway errors matched, if
this errors have occured, then the next domain will be choosen. Note
this errors have occurred, then the next domain will be choosen. Note
that the reply_code must be 3 characters wide, and only the "."
character is accepted as wildcard.The last route does forwarding
according some flags, e.g. the customer came from a certain carrier,
Expand Down
4 changes: 2 additions & 2 deletions modules/carrierroute/cr_config.c
Expand Up @@ -191,7 +191,7 @@ static int backup_config(void) {
* @param rd Pointer to the route data tree where the routing data
* shall be loaded into
*
* @return 0 means ok, -1 means an error occured
* @return 0 means ok, -1 means an error occurred
*
*/
int load_config(struct route_data_t * rd) {
Expand Down Expand Up @@ -546,7 +546,7 @@ static int save_route_data_recursor(struct dtrie_node_t * node, FILE * outfile)
*
* @param rd Pointer to the routing tree which shall be saved to file
*
* @return 0 means ok, -1 means an error occured
* @return 0 means ok, -1 means an error occurred
*/
int save_config(struct route_data_t * rd) {
FILE * outfile;
Expand Down
4 changes: 2 additions & 2 deletions modules/carrierroute/cr_config.h
Expand Up @@ -38,7 +38,7 @@
* @param rd Pointer to the route data tree where the routing data
* shall be loaded into
*
* @return 0 means ok, -1 means an error occured
* @return 0 means ok, -1 means an error occurred
*
*/
int load_config(struct route_data_t * rd);
Expand All @@ -49,7 +49,7 @@ int load_config(struct route_data_t * rd);
*
* @param rd Pointer to the routing tree which shall be saved to file
*
* @return 0 means ok, -1 means an error occured
* @return 0 means ok, -1 means an error occurred
*
*/
int save_config(struct route_data_t * rd);
Expand Down
2 changes: 1 addition & 1 deletion modules/carrierroute/cr_data.c
Expand Up @@ -313,7 +313,7 @@ typedef int (*cmpfunc_t)(const void *v1, const void *v2);
* @param key pointer to the key we are looking for
* @param cmpfunc function to be used for comparison
* @param index If index is not NULL it is set to:
* -1 if an error occured,
* -1 if an error occurred,
* the index of the first entry equal to v
* or the index of the first entry greater than v in the case v was not found.
* Be careful: The index returned can be greater than the length of the array!
Expand Down
2 changes: 1 addition & 1 deletion modules/carrierroute/cr_db.c
Expand Up @@ -260,7 +260,7 @@ int load_user_carrier(str * user, str * domain) {
* @param rd Pointer to the route data tree where the routing data
* shall be loaded into
*
* @return 0 means ok, -1 means an error occured
* @return 0 means ok, -1 means an error occurred
*
*/
int load_route_data_db(struct route_data_t * rd) {
Expand Down
2 changes: 1 addition & 1 deletion modules/carrierroute/cr_db.h
Expand Up @@ -81,7 +81,7 @@ void set_load_comments_params(int load_comments);
* @param rd Pointer to the route data tree where the routing data
* shall be loaded into
*
* @return 0 means ok, -1 means an error occured
* @return 0 means ok, -1 means an error occurred
*
*/
int load_route_data_db (struct route_data_t * rd);
Expand Down
4 changes: 2 additions & 2 deletions modules/carrierroute/cr_fifo.c
Expand Up @@ -954,7 +954,7 @@ struct mi_root* print_fifo_err(void) {

switch (fifo_err) {
case E_MISC:
rpl_tree = init_mi_tree( 400, "An error occured", 17);
rpl_tree = init_mi_tree( 400, "An error occurred", 18);
if(rpl_tree == NULL)
return 0;
break;
Expand Down Expand Up @@ -1037,7 +1037,7 @@ struct mi_root* print_fifo_err(void) {
return print_replace_help();
break;
default:
rpl_tree = init_mi_tree( 500, "An error occured", 17);
rpl_tree = init_mi_tree( 500, "An error occurred", 17);
if(rpl_tree == NULL)
return 0;
break;
Expand Down
2 changes: 1 addition & 1 deletion modules/carrierroute/cr_func.c
Expand Up @@ -311,7 +311,7 @@ static void build_used_uris_list(avp_value_t* used_dests, int* no_dests){
//LM_DBG(" used_dests[%d]=%.*s \n", (*no_dests)-1, used_dests[(*no_dests)-1].s.len, used_dests[(*no_dests)-1].s.s);
}

//LM_DBG("sucessfully built used_uris list!\n");
//LM_DBG("successfully built used_uris list!\n");
}

int cr_uri_already_used(str dest , avp_value_t* used_dests, int no_dests){
Expand Down
4 changes: 2 additions & 2 deletions modules/carrierroute/db_carrierroute.c
Expand Up @@ -96,7 +96,7 @@ void carrierroute_db_close(void) {
* Initialises the DB API, check the table version and closes the connection.
* This should be called from the mod_init function.
*
* \return 0 means ok, -1 means an error occured.
* \return 0 means ok, -1 means an error occurred.
*/
int carrierroute_db_init(void) {
if (!carrierroute_db_url.s || !carrierroute_db_url.len) {
Expand Down Expand Up @@ -131,7 +131,7 @@ int carrierroute_db_init(void) {
* This should be called from child_init. An already existing database
* connection will be closed, and a new one created.
*
* \return 0 means ok, -1 means an error occured.
* \return 0 means ok, -1 means an error occurred.
*/
int carrierroute_db_open(void) {
if (carrierroute_dbh) {
Expand Down
4 changes: 2 additions & 2 deletions modules/carrierroute/db_carrierroute.h
Expand Up @@ -139,7 +139,7 @@ void carrierroute_db_close(void);
* Initialises the DB API, check the table version and closes the connection.
* This should be called from the mod_init function.
*
* \return 0 means ok, -1 means an error occured.
* \return 0 means ok, -1 means an error occurred.
*/
int carrierroute_db_init(void);

Expand All @@ -148,7 +148,7 @@ int carrierroute_db_init(void);
* This should be called from child_init. An already existing database
* connection will be closed, and a new one created.
*
* \return 0 means ok, -1 means an error occured.
* \return 0 means ok, -1 means an error occurred.
*/
int carrierroute_db_open(void);

Expand Down
4 changes: 2 additions & 2 deletions modules/carrierroute/doc/carrierroute_admin.xml
Expand Up @@ -450,7 +450,7 @@ cr_tree_rewrite_uri(tree, domain)
in prefix_matching at the given domain in the given carrier tree.
The Request URI is rewritten using rewrite_user and the given
hash source and algorithm. Returns -1 if there is no data found
or an empty rewrite host on the longest match is found. On sucess
or an empty rewrite host on the longest match is found. On success
also the description is stored in the given AVP (if obmitted, nothing
is stored in an AVP). This is useful if you need some additional
informations that belongs to each gw, like the destination or the
Expand Down Expand Up @@ -1118,7 +1118,7 @@ domain register {
for example that indicates that ringing has happened. If this flag is set,
there will be no further forwarding, because next_domain is empty. In the
second and third routes are certain gateway errors matched, if this errors
have occured, then the next domain will be choosen. Note that the reply_code must be
have occurred, then the next domain will be choosen. Note that the reply_code must be
3 characters wide, and only the "." character is accepted as wildcard.The last route
does forwarding according some flags, e.g. the customer came from a certain carrier,
and has call-forwarding deactivated. In order to use the routing that is
Expand Down

0 comments on commit 4e6b659

Please sign in to comment.