mirror of
https://github.com/asterisk/asterisk.git
synced 2025-10-13 00:04:53 +00:00
Issue #6884 - manager.c formatting (casper)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@17389 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -183,7 +183,8 @@ int ast_carefulwrite(int fd, char *s, int len, int timeoutms)
|
||||
if ((res < 0) && (errno != EAGAIN)) {
|
||||
return -1;
|
||||
}
|
||||
if (res < 0) res = 0;
|
||||
if (res < 0)
|
||||
res = 0;
|
||||
len -= res;
|
||||
s += res;
|
||||
res = 0;
|
||||
@@ -589,7 +590,6 @@ static void destroy_session(struct mansession *s)
|
||||
} else
|
||||
ast_log(LOG_WARNING, "Trying to delete nonexistent session %p?\n", s);
|
||||
ast_mutex_unlock(&sessionlock);
|
||||
|
||||
}
|
||||
|
||||
char *astman_get_header(struct message *m, char *var)
|
||||
@@ -2402,6 +2402,7 @@ int init_manager(void)
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
if ((asock > -1) && ((portno != oldportno) || !enabled)) {
|
||||
#if 0
|
||||
/* Can't be done yet */
|
||||
@@ -2436,6 +2437,7 @@ int init_manager(void)
|
||||
if (!enabled) {
|
||||
return 0;
|
||||
}
|
||||
|
||||
if (asock < 0) {
|
||||
asock = socket(AF_INET, SOCK_STREAM, 0);
|
||||
if (asock < 0) {
|
||||
|
Reference in New Issue
Block a user