From edc998d58fbd9f5555d951c6469d7278525af1e1 Mon Sep 17 00:00:00 2001 From: Victor Seva Date: Tue, 22 Oct 2019 09:35:10 +0200 Subject: [PATCH] seas: fix spelling error (cherry picked from commit 8a197dcc8d2d063d3615e8800ed8d2f7812cce0f) --- src/modules/seas/event_dispatcher.c | 26 +++++++++++++------------- src/modules/seas/event_dispatcher.h | 2 +- 2 files changed, 14 insertions(+), 14 deletions(-) diff --git a/src/modules/seas/event_dispatcher.c b/src/modules/seas/event_dispatcher.c index e371601a193..86f1b0d7226 100644 --- a/src/modules/seas/event_dispatcher.c +++ b/src/modules/seas/event_dispatcher.c @@ -282,19 +282,19 @@ int dispatcher_main_loop(void) } } } - /*now handle data sent from uncompleted AS*/ - LM_DBG("Scanning data from %d uncomplete AS \n",unc_as_nr); + /*now handle data sent from incompleted AS*/ + LM_DBG("Scanning data from %d incomplete AS \n",unc_as_nr); clean_index=0; for(i=0;irevents) poll_events--; if(poll_tmp->revents & POLLIN){ - LM_DBG("POLLIN found in %d uncomplete AS \n",i); + LM_DBG("POLLIN found in %d incomplete AS \n",i); poll_tmp->revents &= (~POLLIN); fd=handle_unc_as_data(poll_tmp->fd); if(fd>0){ - /* there's a new AS, push the uncomplete poll_fds up and set the AS */ + /* there's a new AS, push the incomplete poll_fds up and set the AS */ for(k=i;k>0;k--){ j=3+as_nr+k; poll_fds[j].fd=poll_fds[j-1].fd; @@ -306,7 +306,7 @@ int dispatcher_main_loop(void) poll_fds[3+as_nr].revents=0; as_nr++;/*not very sure if this is thread-safe*/ unc_as_nr--; - }else if(fd<=0){/* pull the upper set of uncomplete AS down and take this one out*/ + }else if(fd<=0){/* pull the upper set of incomplete AS down and take this one out*/ poll_tmp->revents=0; for(k=i;k<(unc_as_nr-1);k++){ j=3+as_nr+k; @@ -321,7 +321,7 @@ int dispatcher_main_loop(void) } } if(poll_tmp->revents & POLLHUP){ - LM_DBG("POLLHUP found in %d uncomplete AS \n",i); + LM_DBG("POLLHUP found in %d incomplete AS \n",i); close(poll_tmp->fd); for(k=i;k<(unc_as_nr-1);k++){ j=3+as_nr+k; @@ -926,17 +926,17 @@ static int handle_unc_as_data(int fd) int i,j,k,len; char *name1; struct as_entry *as; - /*first, we see if the data to read is from any of the uncompleted as's*/ + /*first, we see if the data to read is from any of the incompleted as's*/ for(i=0;i<2*MAX_UNC_AS_NR ;i++) if(unc_as_t[i].valid && unc_as_t[i].fd==fd) break; if(i==2*MAX_UNC_AS_NR){ - LM_ERR("has received an fd which is not in uncompleted AS array\n"); + LM_ERR("has received an fd which is not in incompleted AS array\n"); return -1; } if(unc_as_t[i].flags & HAS_NAME){/*shouldn't happen, if it has a name, it shouldnt be in fdset[]*/ LM_WARN("this shouldn't happen\n"); - return 0;/*already have a name, please take me out the uncompleted AS array*/ + return 0;/*already have a name, please take me out the incompleted AS array*/ } LM_DBG("Reading client name\n"); @@ -1015,7 +1015,7 @@ static inline int read_name(int sock,char *dst,int dstlen) return -1; } }else if(n==0){ - LM_WARN("uncomplete AS has disconnected before giving its name\n"); + LM_WARN("incomplete AS has disconnected before giving its name\n"); return -2; } if(namelen>dstlen || namelen==0){ @@ -1031,7 +1031,7 @@ static inline int read_name(int sock,char *dst,int dstlen) return -1; } }else if(n==0){ - LM_WARN("uncomplete AS has disconnected before giving its name\n"); + LM_WARN("incomplete AS has disconnected before giving its name\n"); return -2; } dst[namelen]=0; @@ -1073,7 +1073,7 @@ static int new_as_connect(int fd,char which) case 'e': for(i=0;i