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 <berrange@redhat.com>
This commit is contained in:
Daniel P. Berrange 2014-03-07 16:53:21 +00:00
parent 184d464661
commit c383e13a37
2 changed files with 14 additions and 17 deletions

View File

@ -381,20 +381,7 @@ ebtablesContextFree(ebtablesContext *ctx)
VIR_FREE(ctx); VIR_FREE(ctx);
} }
int static int
ebtablesAddForwardPolicyReject(ebtablesContext *ctx)
{
return ebtablesForwardPolicyReject(ctx, ADD);
}
int
ebtablesRemoveForwardPolicyReject(ebtablesContext *ctx)
{
return ebtablesForwardPolicyReject(ctx, REMOVE);
}
int
ebtablesForwardPolicyReject(ebtablesContext *ctx, ebtablesForwardPolicyReject(ebtablesContext *ctx,
int action) int action)
{ {
@ -416,6 +403,19 @@ ebtablesForwardPolicyReject(ebtablesContext *ctx,
NULL); 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 * Allow all traffic destined to the bridge, with a valid network address
*/ */

View File

@ -61,7 +61,4 @@ int ebtablesAddForwardPolicyReject(ebtablesContext *ctx);
int ebtablesRemoveForwardPolicyReject(ebtablesContext *ctx); int ebtablesRemoveForwardPolicyReject(ebtablesContext *ctx);
int ebtablesForwardPolicyReject(ebtablesContext *ctx,
int action);
#endif /* __QEMUD_ebtabLES_H__ */ #endif /* __QEMUD_ebtabLES_H__ */