diff options
author | Lorenz Meier <lm@inf.ethz.ch> | 2013-09-04 08:12:51 +0200 |
---|---|---|
committer | Lorenz Meier <lm@inf.ethz.ch> | 2013-09-04 08:12:51 +0200 |
commit | 0c7995fd03bff63e765862910eaafff1ffb3197c (patch) | |
tree | 43e45afb49694c68ac3a86b3a5924e51ab61db4b /src | |
parent | 5e9b1d6b2e49f055164c4c4651e8ed5587a6f4ef (diff) | |
download | px4-firmware-0c7995fd03bff63e765862910eaafff1ffb3197c.tar.gz px4-firmware-0c7995fd03bff63e765862910eaafff1ffb3197c.tar.bz2 px4-firmware-0c7995fd03bff63e765862910eaafff1ffb3197c.zip |
Avoid unneccesary cast
Diffstat (limited to 'src')
-rw-r--r-- | src/modules/systemlib/mavlink_log.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/modules/systemlib/mavlink_log.c b/src/modules/systemlib/mavlink_log.c index 03ca71375..f321f9ceb 100644 --- a/src/modules/systemlib/mavlink_log.c +++ b/src/modules/systemlib/mavlink_log.c @@ -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) |