forked from Archive/PX4-Autopilot
Avoid unneccesary cast
This commit is contained in:
parent
5e9b1d6b2e
commit
0c7995fd03
|
@ -51,7 +51,7 @@ __EXPORT void mavlink_logbuffer_init(struct mavlink_logbuffer *lb, int size)
|
|||
lb->size = size;
|
||||
lb->start = 0;
|
||||
lb->count = 0;
|
||||
lb->elems = (struct mavlink_logmessage *)calloc(lb->size, sizeof(struct mavlink_logmessage));
|
||||
lb->elems = calloc(lb->size, sizeof(struct mavlink_logmessage));
|
||||
}
|
||||
|
||||
__EXPORT void mavlink_logbuffer_destroy(struct mavlink_logbuffer *lb)
|
||||
|
|
Loading…
Reference in New Issue