From c383e13a37736d2f2967499dfb4625890de84ac6 Mon Sep 17 00:00:00 2001 From: "Daniel P. Berrange" Date: Fri, 7 Mar 2014 16:53:21 +0000 Subject: [PATCH] Make ebtablesForwardPolicyReject static The ebtablesForwardPolicyReject method is only used internally to the ebtables code and thus should have been static. Signed-off-by: Daniel P. Berrange --- src/util/virebtables.c | 28 ++++++++++++++-------------- src/util/virebtables.h | 3 --- 2 files changed, 14 insertions(+), 17 deletions(-) diff --git a/src/util/virebtables.c b/src/util/virebtables.c index ce5e81382f..9848f50b63 100644 --- a/src/util/virebtables.c +++ b/src/util/virebtables.c @@ -381,20 +381,7 @@ ebtablesContextFree(ebtablesContext *ctx) VIR_FREE(ctx); } -int -ebtablesAddForwardPolicyReject(ebtablesContext *ctx) -{ - return ebtablesForwardPolicyReject(ctx, ADD); -} - - -int -ebtablesRemoveForwardPolicyReject(ebtablesContext *ctx) -{ - return ebtablesForwardPolicyReject(ctx, REMOVE); -} - -int +static int ebtablesForwardPolicyReject(ebtablesContext *ctx, int action) { @@ -416,6 +403,19 @@ ebtablesForwardPolicyReject(ebtablesContext *ctx, NULL); } +int +ebtablesAddForwardPolicyReject(ebtablesContext *ctx) +{ + return ebtablesForwardPolicyReject(ctx, ADD); +} + + +int +ebtablesRemoveForwardPolicyReject(ebtablesContext *ctx) +{ + return ebtablesForwardPolicyReject(ctx, REMOVE); +} + /* * Allow all traffic destined to the bridge, with a valid network address */ diff --git a/src/util/virebtables.h b/src/util/virebtables.h index 53b8e4895a..330b441a48 100644 --- a/src/util/virebtables.h +++ b/src/util/virebtables.h @@ -61,7 +61,4 @@ int ebtablesAddForwardPolicyReject(ebtablesContext *ctx); int ebtablesRemoveForwardPolicyReject(ebtablesContext *ctx); -int ebtablesForwardPolicyReject(ebtablesContext *ctx, - int action); - #endif /* __QEMUD_ebtabLES_H__ */ -- 2.47.2