mirror of
https://github.com/asterisk/asterisk.git
synced 2025-10-05 04:32:44 +00:00
various files - fix some alerts raised by lgtm code analysis
This patch fixes several issues reported by the lgtm code analysis tool: https://lgtm.com/projects/g/asterisk/asterisk Not all reported issues were addressed in this patch. This patch mostly fixes confirmed reported errors, potential problematic code points, and a few other "low hanging" warnings or recommendations found in core supported modules. These include, but are not limited to the following: * innapropriate stack allocation in loops * buffer overflows * variable declaration "hiding" another variable declaration * comparisons results that are always the same * ambiguously signed bit-field members * missing header guards Change-Id: Id4a881686605d26c94ab5409bc70fcc21efacc25
This commit is contained in:
committed by
George Joseph
parent
990a91b44a
commit
bdd785d31c
@@ -18,6 +18,9 @@
|
||||
* \brief Internal channel functions for channel.c to use
|
||||
*/
|
||||
|
||||
#ifndef ASTERISK_CHANNEL_INTERNAL_H
|
||||
#define ASTERISK_CHANNEL_INTERNAL_H
|
||||
|
||||
#define ast_channel_internal_alloc(destructor, assignedid, requestor) __ast_channel_internal_alloc(destructor, assignedid, requestor, __FILE__, __LINE__, __PRETTY_FUNCTION__)
|
||||
struct ast_channel *__ast_channel_internal_alloc(void (*destructor)(void *obj), const struct ast_assigned_ids *assignedids, const struct ast_channel *requestor, const char *file, int line, const char *function);
|
||||
void ast_channel_internal_finalize(struct ast_channel *chan);
|
||||
@@ -33,3 +36,5 @@ void ast_channel_internal_set_stream_topology_change_source(
|
||||
struct ast_channel *chan, void *change_source);
|
||||
void ast_channel_internal_swap_stream_topology(struct ast_channel *chan1,
|
||||
struct ast_channel *chan2);
|
||||
|
||||
#endif /* ASTERISK_CHANNEL_INTERNAL_H */
|
||||
|
Reference in New Issue
Block a user