summaryrefslogtreecommitdiff
path: root/main/manager.c
diff options
context:
space:
mode:
authorJoshua Colp <jcolp@digium.com>2008-02-11 18:27:47 +0000
committerJoshua Colp <jcolp@digium.com>2008-02-11 18:27:47 +0000
commitc81350d6f65e9a11da6b3b15a81d8cfb7a5eb6f5 (patch)
tree13b41c4dbe69fdfe18fe8f5d26befdad2bc40b7e /main/manager.c
parentef267cd83817c17c46b2b924e765edebd13bb508 (diff)
Just some minor coding style cleanup...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@103318 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'main/manager.c')
-rw-r--r--main/manager.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/main/manager.c b/main/manager.c
index ae6dd7dc0..33973f399 100644
--- a/main/manager.c
+++ b/main/manager.c
@@ -395,7 +395,7 @@ static int strings_to_mask(const char *string)
return 0;
if (ast_true(string)) { /* all permissions */
int x, ret = 0;
- for (x=0; x<sizeof(perms) / sizeof(perms[0]); x++)
+ for (x = 0; x<sizeof(perms) / sizeof(perms[0]); x++)
ret |= perms[x].num;
return ret;
}
@@ -1009,7 +1009,7 @@ static int authenticate(struct mansession *s, const struct message *m)
MD5Update(&md5, (unsigned char *) s->challenge, strlen(s->challenge));
MD5Update(&md5, (unsigned char *) user->secret, strlen(user->secret));
MD5Final(digest, &md5);
- for (x=0; x<16; x++)
+ for (x = 0; x < 16; x++)
len += sprintf(md5key + len, "%2.2x", digest[x]);
if (!strcmp(md5key, key))
error = 0;
@@ -1334,7 +1334,7 @@ static int action_waitevent(struct mansession *s, const struct message *m)
s->waiting_thread = pthread_self(); /* let new events wake up this thread */
ast_debug(1, "Starting waiting for an event!\n");
- for (x=0; x < timeout || timeout < 0; x++) {
+ for (x = 0; x < timeout || timeout < 0; x++) {
ast_mutex_lock(&s->__lock);
if (NEW_EVENT(s))
needexit = 1;