aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/inline.c
diff options
authorLuc Van Oostenryck <luc.vanoostenryck@gmail.com>2017-12-07 10:57:02 +0100
committerLuc Van Oostenryck <luc.vanoostenryck@gmail.com>2018-01-07 16:09:53 +0100
commit58a12b842938b41cd237ac5c973ce6d9d66e1121 (patch)
tree30c7312e1bc4a19146251f45d7bd60a1ceca50b0 /inline.c
parente742c98f83d488780a5df62a2cffe2ee1b1969c6 (diff)
downloadsparse-dev-58a12b842938b41cd237ac5c973ce6d9d66e1121.tar.gz
cleanup: make some functions static
These functions are clearly meant to be used locally. Furthermore, some have no prototypes. Make these functions static and remove the prototype when one was present. Signed-off-by: Luc Van Oostenryck <luc.vanoostenryck@gmail.com>
Diffstat (limited to 'inline.c')
-rw-r--r--inline.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/inline.c b/inline.c
index 012fb379..b999dbac 100644
--- a/inline.c
+++ b/inline.c
@@ -33,6 +33,8 @@
#include "symbol.h"
#include "expression.h"
+static void copy_statement(struct statement *src, struct statement *dst);
+
static struct expression * dup_expression(struct expression *expr)
{
struct expression *dup = alloc_expression(expr->pos, expr->type);
@@ -463,7 +465,7 @@ static struct statement *copy_one_statement(struct statement *stmt)
* This doesn't do the symbol replacement right: it's not
* re-entrant.
*/
-void copy_statement(struct statement *src, struct statement *dst)
+static void copy_statement(struct statement *src, struct statement *dst)
{
struct statement *stmt;