Module: sip-router Branch: master Commit: adc585e48f6a56cc96fc10559a3327c921b6736b URL: http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=adc585e4...
Author: Timo Reimann sr@foo-lounge.de Committer: Timo Reimann sr@foo-lounge.de Date: Sun Apr 22 13:06:34 2012 +0200
Fix various spelling errors.
- Credits to Victor Seva for providing the patch.
---
modules/db_postgres/pg_cmd.c | 2 +- modules/sipcapture/sipcapture.c | 2 +- modules/sms/libsms_getsms.c | 2 +- modules/sms/sms_funcs.c | 4 ++-- modules/tls/tls_init.c | 4 ++-- modules_k/p_usrloc/ul_db_tran.c | 2 +- modules_k/path/path.c | 2 +- modules_k/pv/pv_core.c | 2 +- modules_k/regex/regex_mod.c | 4 ++-- modules_k/seas/event_dispatcher.c | 2 +- modules_s/domain/domain.c | 2 +- rvalue.c | 2 +- socket_info.c | 2 +- tcp_main.c | 2 +- utils/kamctl/kamdbctl.8 | 2 +- 15 files changed, 18 insertions(+), 18 deletions(-)
diff --git a/modules/db_postgres/pg_cmd.c b/modules/db_postgres/pg_cmd.c index f09014c..eec1c1b 100644 --- a/modules/db_postgres/pg_cmd.c +++ b/modules/db_postgres/pg_cmd.c @@ -349,7 +349,7 @@ static int upload_cmd(db_cmd_t* cmd) /* FIXME: The function should take the connection as one of parameters */ pcon = DB_GET_PAYLOAD(cmd->ctx->con[db_payload_idx]);
- DBG("postgres: Uploading comand '%s': '%s'\n", pcmd->name, + DBG("postgres: Uploading command '%s': '%s'\n", pcmd->name, pcmd->sql_cmd.s);
res = PQprepare(pcon->con, pcmd->name, pcmd->sql_cmd.s, 0, NULL); diff --git a/modules/sipcapture/sipcapture.c b/modules/sipcapture/sipcapture.c index e2df848..6905f85 100644 --- a/modules/sipcapture/sipcapture.c +++ b/modules/sipcapture/sipcapture.c @@ -1394,7 +1394,7 @@ int raw_capture_socket(struct ip_addr* ip, str* iface, int port_start, int port_ } #endif else { - ERR("raw_capture_socket: LSF currently suppoted only on linux\n"); + ERR("raw_capture_socket: LSF currently supported only on linux\n"); goto error; }
diff --git a/modules/sms/libsms_getsms.c b/modules/sms/libsms_getsms.c index c4969eb..d185c57 100644 --- a/modules/sms/libsms_getsms.c +++ b/modules/sms/libsms_getsms.c @@ -519,7 +519,7 @@ int cds2sms(struct incame_sms *sms, struct modem *mdm, char *s, int s_len) ptr = s; for ( n=0 ; n<2 && (ptr=strstr(ptr,"\r\n")) ; n++,ptr+=2 ); if (n<2) { - LM_ERR("failed to find pdu begining in CDS!\n"); + LM_ERR("failed to find pdu beginning in CDS!\n"); goto error; } data = ptr; diff --git a/modules/sms/sms_funcs.c b/modules/sms/sms_funcs.c index 5561301..5fcb66b 100644 --- a/modules/sms/sms_funcs.c +++ b/modules/sms/sms_funcs.c @@ -641,7 +641,7 @@ int send_sms_as_sip( struct incame_sms *sms ) /* the rest of the sms (if any ;-)) is the body! */ sip_body.s = p; sip_body.len = sms->ascii + sms->userdatalength - p; - /* let's trim out all \n an \r from begining */ + /* let's trim out all \n an \r from beginning */ while ( sip_body.len && sip_body.s && (sip_body.s[0]=='\n' || sip_body.s[0]=='\r') ) { sip_body.s++; @@ -696,7 +696,7 @@ int send_sms_as_sip_scan_no(struct incame_sms *sms, char *to) sip_body.len = sms->ascii + sms->userdatalength - sms->ascii; sip_body.s = sms->ascii;
- /* let's trim out all \n an \r from begining */ + /* let's trim out all \n an \r from beginning */ while (sip_body.len && sip_body.s && (sip_body.s[0] == '\n' || sip_body.s[0] == '\r')) { sip_body.s++; diff --git a/modules/tls/tls_init.c b/modules/tls/tls_init.c index 70338b1..e409b5e 100644 --- a/modules/tls/tls_init.c +++ b/modules/tls/tls_init.c @@ -544,8 +544,8 @@ int init_tls_h(void) " zlib compression: %s" "\n %s\n", SSLeay_version(SSLEAY_VERSION), ssl_version, - (lib_kerberos==1)?"on":(lib_kerberos==0)?"off":"unkown", - (lib_zlib==1)?"on":(lib_zlib==0)?"off":"unkown", + (lib_kerberos==1)?"on":(lib_kerberos==0)?"off":"unknown", + (lib_zlib==1)?"on":(lib_zlib==0)?"off":"unknown", SSLeay_version(SSLEAY_CFLAGS)); if (lib_kerberos!=kerberos_support){ if (lib_kerberos!=-1){ diff --git a/modules_k/p_usrloc/ul_db_tran.c b/modules_k/p_usrloc/ul_db_tran.c index 5d0fa1c..e87b130 100644 --- a/modules_k/p_usrloc/ul_db_tran.c +++ b/modules_k/p_usrloc/ul_db_tran.c @@ -85,7 +85,7 @@ int ul_db_tran_commit(ul_db_handle_t * handle, int working[]) { for(i=0; i<DB_NUM; i++) { if((handle->db[i].status == DB_ON) && (working[i])) { if(submit_tran_commit(&handle->db[i].dbf, handle->db[i].dbh) < 0) { - LM_ERR("error while commiting " + LM_ERR("error while committing " "transaction on id %i, db %i.\n", handle->id, handle->db[i].no); if(db_handle_error(handle, handle->db[i].no) < 0) { LM_ERR("error during handling error " diff --git a/modules_k/path/path.c b/modules_k/path/path.c index f286077..57c413a 100644 --- a/modules_k/path/path.c +++ b/modules_k/path/path.c @@ -210,7 +210,7 @@ void path_rr_callback(struct sip_msg *_m, str *r_param, void *cb_param) param_t *params; if (parse_params(r_param, CLASS_CONTACT, &hooks, ¶ms) != 0) { - LM_ERR("failed to parse route parametes\n"); + LM_ERR("failed to parse route parameters\n"); return; }
diff --git a/modules_k/pv/pv_core.c b/modules_k/pv/pv_core.c index fb76583..370ec1a 100644 --- a/modules_k/pv/pv_core.c +++ b/modules_k/pv/pv_core.c @@ -1707,7 +1707,7 @@ int pv_set_dsturi(struct sip_msg* msg, pv_param_t *param, } if(!(val->flags&PV_VAL_STR)) { - LM_ERR("error - str value requred to set dst uri\n"); + LM_ERR("error - str value required to set dst uri\n"); goto error; } diff --git a/modules_k/regex/regex_mod.c b/modules_k/regex/regex_mod.c index d5b2ab0..51665aa 100644 --- a/modules_k/regex/regex_mod.c +++ b/modules_k/regex/regex_mod.c @@ -316,7 +316,7 @@ static int load_pcres(int action) i++; /* Check if there are more patterns than the max value */ if (i >= max_groups) { - LM_ERR("max patterns exceded\n"); + LM_ERR("max patterns exceeded\n"); fclose(f); goto err; } @@ -328,7 +328,7 @@ static int load_pcres(int action) /* Check if the patter size is too big (aprox) */ if (strlen(patterns[i]) + strlen(line) >= group_max_size - 2) { - LM_ERR("pattern max file exceded\n"); + LM_ERR("pattern max file exceeded\n"); fclose(f); goto err; } diff --git a/modules_k/seas/event_dispatcher.c b/modules_k/seas/event_dispatcher.c index 696a169..366d888 100644 --- a/modules_k/seas/event_dispatcher.c +++ b/modules_k/seas/event_dispatcher.c @@ -192,7 +192,7 @@ int dispatcher_main_loop(void) continue; } if(errno==EBADF){ - LM_ERR("invalid file descriptor pased to poll (%s)\n", + LM_ERR("invalid file descriptor passed to poll (%s)\n", strerror(errno)); return -1;/*??*/ } diff --git a/modules_s/domain/domain.c b/modules_s/domain/domain.c index cb5cb32..4abfc3c 100644 --- a/modules_s/domain/domain.c +++ b/modules_s/domain/domain.c @@ -182,7 +182,7 @@ int db_load_domain_attrs(domain_t* d) load_attrs_cmd->match[0].v.lstr = d->did;
if (db_exec(&res, load_attrs_cmd) < 0) { - ERR("Error while quering database\n"); + ERR("Error while querying database\n"); return -1; }
diff --git a/rvalue.c b/rvalue.c index 00dc19d..cb0db9c 100644 --- a/rvalue.c +++ b/rvalue.c @@ -335,7 +335,7 @@ char* rval_type_name(enum rval_type type) case RV_SEL: return "select"; } - return "error_unkown_type"; + return "error_unknown_type"; }
diff --git a/socket_info.c b/socket_info.c index d439bce..1ccddfd 100644 --- a/socket_info.c +++ b/socket_info.c @@ -1171,7 +1171,7 @@ int add_interfaces_via_netlink(char* if_name, int family, unsigned short port, //if(! (ifaces[i].flags & IFF_UP) ) continue;
for(tmp = ifaces[i].addresses; tmp; tmp = tmp->next){ - LM_DBG("\t in add_iface_via_netlink Name %s Adress %s\n", ifaces[i].name, tmp->addr); + LM_DBG("\t in add_iface_via_netlink Name %s Address %s\n", ifaces[i].name, tmp->addr); /* match family */ if (family == tmp->family){ /* check if loopback */ diff --git a/tcp_main.c b/tcp_main.c index 1c6344c..d629647 100644 --- a/tcp_main.c +++ b/tcp_main.c @@ -1716,7 +1716,7 @@ error: c->id, port); break; default: - LOG(L_ERR, "ERROR: tcpconn_add_alias: unkown error %d\n", ret); + LOG(L_ERR, "ERROR: tcpconn_add_alias: unknown error %d\n", ret); } return -1; } diff --git a/utils/kamctl/kamdbctl.8 b/utils/kamctl/kamdbctl.8 index 4c283ef..3933e87 100644 --- a/utils/kamctl/kamdbctl.8 +++ b/utils/kamctl/kamdbctl.8 @@ -54,7 +54,7 @@ Entirely deletes and than re-creates tables. Restores tables from a file.
.SH NOTES -Not all databases scripts suport all commands. +Not all databases scripts support all commands.
.SH FILES .PD 0