bug-recutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[bug-recutils] [PATCH] src: make some variables static.


From: Giuseppe Scrivano
Subject: [bug-recutils] [PATCH] src: make some variables static.
Date: Fri, 02 Mar 2012 17:08:48 +0100

hello,

another simple patch.  These symbols are not used anywhere else, so it
makes sense to make them static.

Cheers,
Giuseppe



>From a655d113b466152e8f15ce6e82756d0f0960fcf3 Mon Sep 17 00:00:00 2001
From: Giuseppe Scrivano <address@hidden>
Date: Fri, 2 Mar 2012 17:06:33 +0100
Subject: [PATCH] src: make some variables static.

---
 ChangeLog      |   10 ++++++++++
 utils/recutl.c |   12 ++++++------
 2 files changed, 16 insertions(+), 6 deletions(-)

diff --git a/ChangeLog b/ChangeLog
index c524a1e..29ab480 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,13 @@
+2012-03-02  Giuseppe Scrivano  <address@hidden>
+
+       src: make some variables static.
+       * utils/recutl.c (recutl_sort_p): Make it static.
+       (recutl_order_rset): Likewise.
+       (recutl_order_by_field): Likewise.
+       (recutl_interactive_p): Likewise.
+       (recutl_indexes): Likewise.
+       (recutl_indexes_size): Likewise.
+
 2012-03-01  Jose E. Marchesi  <address@hidden>
 
        src: make the # operator to work with field subnames.
diff --git a/utils/recutl.c b/utils/recutl.c
index 1f596d5..f6816f2 100644
--- a/utils/recutl.c
+++ b/utils/recutl.c
@@ -53,12 +53,12 @@
  * Global variables.
  */
 
-bool    recutl_sort_p         = false;
-char   *recutl_order_rset     = NULL;
-char   *recutl_order_by_field = NULL;
-bool    recutl_interactive_p  = false;
-size_t *recutl_indexes        = NULL;
-size_t  recutl_indexes_size   = 0;
+static bool    recutl_sort_p         = false;
+static char   *recutl_order_rset     = NULL;
+static char   *recutl_order_by_field = NULL;
+static bool    recutl_interactive_p  = false;
+static size_t *recutl_indexes        = NULL;
+static size_t  recutl_indexes_size   = 0;
 
 void recutl_print_help (void); /* Forward prototype.  */
 
-- 
1.7.7.6



reply via email to

[Prev in Thread] Current Thread [Next in Thread]