]> granicus.if.org Git - sysstat/commitdiff
Don't define seps variable twice
authorSebastien GODARD <sysstat@users.noreply.github.com>
Mon, 25 Jan 2016 07:20:33 +0000 (08:20 +0100)
committerSebastien GODARD <sysstat@users.noreply.github.com>
Mon, 25 Jan 2016 07:20:33 +0000 (08:20 +0100)
Don't define the seps variable as static so that it can be reused in
other files.

Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
rndr_stats.c
sadf_misc.c

index 82576a85995fd5bfe463c93c1a453a0a4008e3bc..a0bc6e9c98abfc0c1e0d1c07ff9ada908d6c1b0b 100644 (file)
@@ -35,7 +35,7 @@
 #define _(string) (string)
 #endif
 
-static char *seps[] =  {"\t", ";"};
+char *seps[] =  {"\t", ";"};
 
 extern unsigned int flags;
 extern unsigned int dm_major;
index 69f3e3b3f4959e3f7c1a1c9cf6c5f83ec3752523..b12855ba692be3eaf12eaebc8cdc92eb866b6061 100644 (file)
@@ -34,6 +34,7 @@
 #endif
 
 extern unsigned int flags;
+extern char *seps[];
 
 /*
  ***************************************************************************
@@ -427,7 +428,6 @@ char *print_dbppc_timestamp(int fmt, struct file_header *file_hdr, char *cur_dat
 {
        int isdb = (fmt == F_DB_OUTPUT);
        static char pre[80];
-       static char *seps[] =  {"\t", ";"};
        char temp[80];
 
        /* This substring appears on every output line, preformat it here */