mirror of
https://github.com/asterisk/asterisk.git
synced 2025-11-20 00:30: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:
@@ -237,7 +237,7 @@ int ast_device_state(const char *device)
|
||||
}
|
||||
|
||||
if (provider) {
|
||||
if(option_debug > 2)
|
||||
if (option_debug > 2)
|
||||
ast_log(LOG_DEBUG, "Checking if I can find provider for \"%s\" - number: %s\n", provider, number);
|
||||
return getproviderstate(provider, number);
|
||||
}
|
||||
@@ -310,7 +310,7 @@ static int getproviderstate(const char *provider, const char *address)
|
||||
|
||||
AST_LIST_LOCK(&devstate_provs);
|
||||
AST_LIST_TRAVERSE_SAFE_BEGIN(&devstate_provs, devprov, list) {
|
||||
if(option_debug > 4)
|
||||
if (option_debug > 4)
|
||||
ast_log(LOG_DEBUG, "Checking provider %s with %s\n", devprov->label, provider);
|
||||
|
||||
if (!strcasecmp(devprov->label, provider)) {
|
||||
@@ -435,7 +435,7 @@ static void *do_devstate_changes(void *data)
|
||||
struct state_change *cur;
|
||||
|
||||
AST_LIST_LOCK(&state_changes);
|
||||
for(;;) {
|
||||
for (;;) {
|
||||
/* the list lock will _always_ be held at this point in the loop */
|
||||
cur = AST_LIST_REMOVE_HEAD(&state_changes, list);
|
||||
if (cur) {
|
||||
|
||||
Reference in New Issue
Block a user