Misc Grammer/formatting fixes - Thanks Corydon76! (bug #3361)

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4827 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
Josh Roberson 2005-01-17 22:53:36 +00:00
parent 840f035827
commit 7f887cca90
5 changed files with 30 additions and 30 deletions

4
acl.c
View File

@ -154,12 +154,12 @@ struct ast_ha *ast_append_ha(char *sense, char *stuff, struct ast_ha *path)
ha->netmask.s_addr = htonl(y);
}
} else if (!inet_aton(nm, &ha->netmask)) {
ast_log(LOG_WARNING, "%s not a valid netmask\n", nm);
ast_log(LOG_WARNING, "%s is not a valid netmask\n", nm);
free(ha);
return path;
}
if (!inet_aton(tmp, &ha->netaddr)) {
ast_log(LOG_WARNING, "%s not a valid IP\n", tmp);
ast_log(LOG_WARNING, "%s is not a valid IP\n", tmp);
free(ha);
return path;
}

2
cdr.c
View File

@ -209,7 +209,7 @@ int ast_cdr_disposition(struct ast_cdr *cdr, int cause)
break;
default:
res = -1;
ast_log(LOG_WARNING, "We don't handle that cause yet\n");
ast_log(LOG_WARNING, "Cause not handled\n");
}
cdr = cdr->next;
}

View File

@ -916,7 +916,7 @@ int ast_waitfor_n_fd(int *fds, int n, int *ms, int *exception)
pfds = alloca(sizeof(struct pollfd) * n);
if (!pfds) {
ast_log(LOG_WARNING, "alloca failed! bad things will happen.\n");
ast_log(LOG_ERROR, "Out of memory\n");
return -1;
}
if (*ms > 0)
@ -981,7 +981,7 @@ struct ast_channel *ast_waitfor_nandfds(struct ast_channel **c, int n, int *fds,
pfds = alloca(sizeof(struct pollfd) * (n * AST_MAX_FDS + nfds));
if (!pfds) {
ast_log(LOG_WARNING, "alloca failed! bad things will happen.\n");
ast_log(LOG_ERROR, "Out of memory\n");
*outfd = -1;
return NULL;
}

View File

@ -5779,8 +5779,8 @@ static void receive_message(struct sip_pvt *p, struct sip_request *req)
/*--- sip_show_inuse: CLI Command to show calls within limits set by
outgoinglimit and incominglimit ---*/
static int sip_show_inuse(int fd, int argc, char *argv[]) {
#define FORMAT "%-15.15s %-15.15s %-15.15s %-15.15s %-15.15s\n"
#define FORMAT2 "%-15.15s %-15.15s %-15.15s %-15.15s %-15.15s\n"
#define FORMAT "%-25.25s %-15.15s %-15.15s %-15.15s %-15.15s\n"
#define FORMAT2 "%-25.25s %-15.15s %-15.15s %-15.15s %-15.15s\n"
char ilimits[40] = "";
char olimits[40] = "";
char iused[40];
@ -5831,7 +5831,7 @@ static int sip_show_users(int fd, int argc, char *argv[])
regex_t regexbuf;
int havepattern = 0;
#define FORMAT "%-15.15s %-15.15s %-15.15s %-15.15s %-5.5s%-5.5s\n"
#define FORMAT "%-25.25s %-15.15s %-15.15s %-15.15s %-5.5s%-5.5s\n"
if (argc > 4)
return RESULT_SHOWUSAGE;
@ -5875,8 +5875,8 @@ static int sip_show_peers(int fd, int argc, char *argv[])
regex_t regexbuf;
int havepattern = 0;
#define FORMAT2 "%-15.15s %-15.15s %s %s %s %-15.15s %-8s %-10s\n"
#define FORMAT "%-15.15s %-15.15s %s %s %s %-15.15s %-8d %-10s\n"
#define FORMAT2 "%-25.25s %-15.15s %-3.3s %-3.3s %-3.3s %-15.15s %-8s %-10s\n"
#define FORMAT "%-25.25s %-15.15s %-3.3s %-3.3s %-3.3s %-15.15s %-8d %-10s\n"
char name[256] = "";
char iabuf[INET_ADDRSTRLEN];