]> git.itanic.dy.fi Git - rrdd/commitdiff
mem_parser: Replace zero pointer with NULL
authorTimo Kokkonen <timo.t.kokkonen@iki.fi>
Wed, 22 Feb 2012 20:04:13 +0000 (22:04 +0200)
committerTimo Kokkonen <timo.t.kokkonen@iki.fi>
Wed, 22 Feb 2012 20:04:13 +0000 (22:04 +0200)
This is more grammatically correc.

Signed-off-by: Timo Kokkonen <timo.t.kokkonen@iki.fi>
parser.c

index 10bcdbcc9e9bb62a5d4ad52bc35cc890a0159ded..29e50945cdbfba066322a1f1616c9472db328047 100644 (file)
--- a/parser.c
+++ b/parser.c
@@ -61,25 +61,25 @@ int mem_parser(char *data, void *p)
                get_word(buf, 0, word, 1024);
                
                if (!strcmp(word, "MemFree:")) {
-                       free = dec_to_int(buf, 0);
+                       free = dec_to_int(buf, NULL);
                } else if (!strcmp(word, "Buffers:")) {
-                       buffered = dec_to_int(buf, 0);
+                       buffered = dec_to_int(buf, NULL);
                } else if (!strcmp(word, "Cached:")) {
-                       cache = dec_to_int(buf, 0);
+                       cache = dec_to_int(buf, NULL);
                } else if (!strcmp(word, "Active:")) {
-                       active = dec_to_int(buf, 0);
+                       active = dec_to_int(buf, NULL);
                } else if (!strcmp(word, "Inactive:")) {
-                       inactive = dec_to_int(buf, 0);
+                       inactive = dec_to_int(buf, NULL);
                } else if (!strcmp(word, "SwapFree:")) {
-                       swapfree = dec_to_int(buf, 0);
+                       swapfree = dec_to_int(buf, NULL);
                } else if (!strcmp(word, "AnonPages:")) {
-                               anon = dec_to_int(buf, 0);
+                       anon = dec_to_int(buf, NULL);
                } else if (!strcmp(word, "Slab:")) {
-                       slab = dec_to_int(buf, 0);
+                       slab = dec_to_int(buf, NULL);
                } else if (!strcmp(word, "PageTables:")) {
-                       tables = dec_to_int(buf, 0);
+                       tables = dec_to_int(buf, NULL);
                } else if (!strcmp(word, "SwapTotal:")) {
-                       swaptotal = dec_to_int(buf, 0);
+                       swaptotal = dec_to_int(buf, NULL);
                }
        }
        fclose(file);