projects
/
asterisk/asterisk.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
fcf4f43
)
Stop trying to find a parking space after traversing the parkinglot one time.
author
Jeff Peeler
<jpeeler@digium.com>
Fri, 8 Jan 2010 17:18:41 +0000
(17:18 +0000)
committer
Jeff Peeler
<jpeeler@digium.com>
Fri, 8 Jan 2010 17:18:41 +0000
(17:18 +0000)
(closes issue #16428)
Reported by: Yasuhiro Konishi
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@238583
65c4cc65
-6c06-0410-ace0-
fbb531ad65f3
main/features.c
patch
|
blob
|
history
diff --git
a/main/features.c
b/main/features.c
index
261ba46
..
423ff27
100644
(file)
--- a/
main/features.c
+++ b/
main/features.c
@@
-754,7
+754,7
@@
static struct parkeduser *park_space_reserve(struct ast_channel *chan,
for (i = start; 1; i++) {
if (i == parkinglot->parking_stop + 1) {
i = parkinglot->parking_start - 1;
- continue;
+ break;
}
AST_LIST_TRAVERSE(&parkinglot->parkings, cur, list) {
@@
-762,8
+762,7
@@
static struct parkeduser *park_space_reserve(struct ast_channel *chan,
break;
}
}
-
- if (!cur || i == start - 1) {
+ if (!cur) {
parking_space = i;
break;
}