]> arthur.barton.de Git - netdata.git/blobdiff - src/procfile.c
fixed minor issues throughout the code (mainly types); dashboard has now a watermark...
[netdata.git] / src / procfile.c
index 5bd1b10e634298a1d057fee2027a5236ed651d79..7a48579593caceb6fdfccbab710f359acc5d1142 100755 (executable)
@@ -235,7 +235,7 @@ cleanup:
 procfile *procfile_readall(procfile *ff) {
        debug(D_PROCFILE, PF_PREFIX ": Reading file '%s'.", ff->filename);
 
-       ssize_t s, r = 1, x = ff->size;
+       ssize_t s, r = 1, x;
        ff->len = 0;
 
        while(likely(r > 0)) {
@@ -253,7 +253,6 @@ procfile *procfile_readall(procfile *ff) {
                        }
                        ff = new;
                        ff->size += PROCFILE_INCREMENT_BUFFER;
-                       x = PROCFILE_INCREMENT_BUFFER;
                }
 
                debug(D_PROCFILE, "Reading file '%s', from position %ld with length %ld", ff->filename, s, ff->size - s);