mirror of
https://github.com/asterisk/asterisk.git
synced 2025-10-11 07:13:20 +00:00
Cosmetic changes. Make main source files better conform to coding guidelines and standards. (issue #8679 reported by johann8384)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@51486 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -445,7 +445,7 @@ int ast_get_enum(struct ast_channel *chan, const char *number, char *dst, int ds
|
||||
tmp[newpos++] = '.';
|
||||
}
|
||||
if (*p2) {
|
||||
while(*p2 && newpos < 128){
|
||||
while (*p2 && newpos < 128){
|
||||
tmp[newpos++] = *p2;
|
||||
p2++;
|
||||
}
|
||||
@@ -634,7 +634,7 @@ int ast_enum_init(void)
|
||||
/* Destroy existing list */
|
||||
ast_mutex_lock(&enumlock);
|
||||
s = toplevs;
|
||||
while(s) {
|
||||
while (s) {
|
||||
sl = s;
|
||||
s = s->next;
|
||||
free(sl);
|
||||
@@ -644,7 +644,7 @@ int ast_enum_init(void)
|
||||
if (cfg) {
|
||||
sl = NULL;
|
||||
v = ast_variable_browse(cfg, "general");
|
||||
while(v) {
|
||||
while (v) {
|
||||
if (!strcasecmp(v->name, "search")) {
|
||||
s = enum_newtoplev(v->value);
|
||||
if (s) {
|
||||
|
Reference in New Issue
Block a user