Avoid unneccesary cast

This commit is contained in:
Lorenz Meier 2013-09-04 08:12:51 +02:00
parent 5e9b1d6b2e
commit 0c7995fd03
1 changed files with 1 additions and 1 deletions

View File

@ -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)