]> git.ipfire.org Git - thirdparty/libvirt.git/commitdiff
Make ebtablesForwardPolicyReject static
authorDaniel P. Berrange <berrange@redhat.com>
Fri, 7 Mar 2014 16:53:21 +0000 (16:53 +0000)
committerDaniel P. Berrange <berrange@redhat.com>
Tue, 11 Mar 2014 11:01:51 +0000 (11:01 +0000)
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>
src/util/virebtables.c
src/util/virebtables.h

index ce5e81382f0dc6ad603d3c9ff2e655672b214b16..9848f50b6375ee34403604ee26e74072838867bb 100644 (file)
@@ -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
  */
index 53b8e4895ab3ac849be211c2373b1d5a4871a89c..330b441a48c3921ba38f0ae931b5648d346aeb32 100644 (file)
@@ -61,7 +61,4 @@ int              ebtablesAddForwardPolicyReject(ebtablesContext *ctx);
 
 int              ebtablesRemoveForwardPolicyReject(ebtablesContext *ctx);
 
-int              ebtablesForwardPolicyReject(ebtablesContext *ctx,
-                                                  int action);
-
 #endif /* __QEMUD_ebtabLES_H__ */