summaryrefslogtreecommitdiff
path: root/viewres.c
diff options
context:
space:
mode:
authorPaulo Cesar Pereira de Andrade <pcpa@mandriva.com.br>2009-01-19 18:40:18 -0200
committerPaulo Cesar Pereira de Andrade <pcpa@mandriva.com.br>2009-01-19 18:40:18 -0200
commit8f1476657baae54dcca998c01bd4ffe0233a6ba2 (patch)
tree75967bf455d06752eb7f047d547db4f0e7dad331 /viewres.c
parent8906fd92f85710d6d7eceac2fb5955e8c56eadcd (diff)
Ansification and compile warning fixes.
This also uses XORG_CHANGELOG and XORG_CWARNFLAGS, corrects make distcheck and all gcc 4.3 and sparse warnings.
Diffstat (limited to 'viewres.c')
-rw-r--r--viewres.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/viewres.c b/viewres.c
index 211e652..259af28 100644
--- a/viewres.c
+++ b/viewres.c
@@ -75,11 +75,13 @@ typedef struct {
XtIsManaged(VData(node)->resource_lw))
-struct {
+struct WidgetList {
int n_elements;
int max_elements;
XmuWidgetNode **elements;
-} selected_list = { 0, 0, (XmuWidgetNode **) NULL };
+};
+
+static struct WidgetList selected_list = { 0, 0, (XmuWidgetNode **) NULL };
#define INSERT_NODE(node,i) \
selected_list.elements[VData(node)->selection_index = (i)] = (node)
@@ -88,7 +90,7 @@ struct {
selected_list.elements[VData(node)->selection_index] = \
(XmuWidgetNode *) NULL; VData(node)->selection_index = (-1)
-const char *ProgramName;
+static const char *ProgramName;
static int NumberShowing = 0;
static Arg sensitiveargs[2] = {{ XtNsensitive, (XtArgVal) FALSE },