]> git.proxmox.com Git - mirror_iproute2.git/blobdiff - misc/nstat.c
ss: make local variables static
[mirror_iproute2.git] / misc / nstat.c
index a4dd405d43a93e86e712475eb3b9e3e733bee839..88f1c7698243235b12f58cd067afce488af1be4c 100644 (file)
@@ -37,7 +37,6 @@ int reset_history;
 int ignore_history;
 int no_output;
 int json_output;
-int pretty;
 int no_update;
 int scan_interval;
 int time_constant;
@@ -178,12 +177,12 @@ static int count_spaces(const char *line)
 
 static void load_ugly_table(FILE *fp)
 {
-       char buf[4096];
+       char buf[2048];
        struct nstat_ent *db = NULL;
        struct nstat_ent *n;
 
        while (fgets(buf, sizeof(buf), fp) != NULL) {
-               char idbuf[sizeof(buf)];
+               char idbuf[4096];
                int  off;
                char *p;
                int count1, count2, skip = 0;