diff mbox

Add static to global variables

Message ID 1403895823-60535-1-git-send-email-mike.holmes@linaro.org
State Accepted
Commit 1d1210b9c9af5daed69df8f319bb19be80921f2d
Headers show

Commit Message

Mike Holmes June 27, 2014, 7:03 p.m. UTC
Signed-off-by: Mike Holmes <mike.holmes@linaro.org>
---
 platform/linux-generic/source/odp_timer.c | 2 +-
 test/l2fwd/l2fwd.c                        | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

Comments

Maxim Uvarov July 1, 2014, 7:49 a.m. UTC | #1
Applied,
Thanks!

Maxim.

On 06/27/2014 11:03 PM, Mike Holmes wrote:
> Signed-off-by: Mike Holmes <mike.holmes@linaro.org>
> ---
>   platform/linux-generic/source/odp_timer.c | 2 +-
>   test/l2fwd/l2fwd.c                        | 2 +-
>   2 files changed, 2 insertions(+), 2 deletions(-)
>
> diff --git a/platform/linux-generic/source/odp_timer.c b/platform/linux-generic/source/odp_timer.c
> index 509a890..5a88c54 100644
> --- a/platform/linux-generic/source/odp_timer.c
> +++ b/platform/linux-generic/source/odp_timer.c
> @@ -45,7 +45,7 @@ typedef struct {
>   } timer_global_t;
>   
>   /* Global */
> -timer_global_t odp_timer;
> +static timer_global_t odp_timer;
>   
>   static void add_tmo(tick_t *tick, timeout_t *tmo)
>   {
> diff --git a/test/l2fwd/l2fwd.c b/test/l2fwd/l2fwd.c
> index 36a7abd..035f710 100644
> --- a/test/l2fwd/l2fwd.c
> +++ b/test/l2fwd/l2fwd.c
> @@ -73,7 +73,7 @@ typedef struct {
>   
>   /** Global pointer to args */
>   static args_t *gbl_args;
> -int num_workers;
> +static int num_workers;
>   
>   /* helper funcs */
>   static int drop_err_pkts(odp_packet_t pkt_tbl[], unsigned len);
diff mbox

Patch

diff --git a/platform/linux-generic/source/odp_timer.c b/platform/linux-generic/source/odp_timer.c
index 509a890..5a88c54 100644
--- a/platform/linux-generic/source/odp_timer.c
+++ b/platform/linux-generic/source/odp_timer.c
@@ -45,7 +45,7 @@  typedef struct {
 } timer_global_t;
 
 /* Global */
-timer_global_t odp_timer;
+static timer_global_t odp_timer;
 
 static void add_tmo(tick_t *tick, timeout_t *tmo)
 {
diff --git a/test/l2fwd/l2fwd.c b/test/l2fwd/l2fwd.c
index 36a7abd..035f710 100644
--- a/test/l2fwd/l2fwd.c
+++ b/test/l2fwd/l2fwd.c
@@ -73,7 +73,7 @@  typedef struct {
 
 /** Global pointer to args */
 static args_t *gbl_args;
-int num_workers;
+static int num_workers;
 
 /* helper funcs */
 static int drop_err_pkts(odp_packet_t pkt_tbl[], unsigned len);