X-Git-Url: http://git.asterisk.org/gitweb/?p=asterisk%2Fasterisk.git;a=blobdiff_plain;f=main%2Fmanager.c;h=33973f39978dff90c3cc033d700fd3f9e21ba7b0;hp=ae6dd7dc02be9b29397a230a2d8d8f0c21dfd0e7;hb=c81350d6f65e9a11da6b3b15a81d8cfb7a5eb6f5;hpb=ef267cd83817c17c46b2b924e765edebd13bb508 diff --git a/main/manager.c b/main/manager.c index ae6dd7d..33973f3 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; xchallenge, 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;