Diff between 61afbf8392b2ae04541108e7c7aace69b86518ef and 2de0281cde42e605d798866945d5ceb9f2832ca9
Changed Files
| File | Additions | Deletions | Status |
| src/shared/mgmt.c | +3 | -1 | modified |
Full Patch
diff --git a/src/shared/mgmt.c b/src/shared/mgmt.c
index 0c199ea..aa06014 100644
--- a/src/shared/mgmt.c
+++ b/src/shared/mgmt.c
@@ -619,10 +619,12 @@ bool mgmt_cancel(struct mgmt *mgmt, unsigned int id)
bool mgmt_cancel_index(struct mgmt *mgmt, uint16_t index)
{
+ unsigned int id = index;
+
if (!mgmt)
return false;
- return cancel_request(mgmt, GUINT_TO_POINTER(index),
+ return cancel_request(mgmt, GUINT_TO_POINTER(id),
compare_request_index);
}