summaryrefslogtreecommitdiff
path: root/src/bootchart/bootchart.c
diff options
context:
space:
mode:
authorAuke Kok <auke-jan.h.kok@intel.com>2013-01-10 11:34:58 -0800
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2013-01-10 15:21:42 -0500
commit53f5329f7aa321d72847cd7f8f28da9a7db80331 (patch)
tree851d818096a926ae99aa1d4a86a9889726528f55 /src/bootchart/bootchart.c
parentdb91ea32aa223d1b087d99811226a9c59a1bb281 (diff)
bootchart: Convert !strcmp usage to streq
Diffstat (limited to 'src/bootchart/bootchart.c')
-rw-r--r--src/bootchart/bootchart.c21
1 files changed, 11 insertions, 10 deletions
diff --git a/src/bootchart/bootchart.c b/src/bootchart/bootchart.c
index 3d77bab129..7bcfd98249 100644
--- a/src/bootchart/bootchart.c
+++ b/src/bootchart/bootchart.c
@@ -28,6 +28,7 @@
#include "bootchart.h"
+#include "util.h"
double graph_start;
double log_start;
@@ -109,25 +110,25 @@ int main(int argc, char *argv[])
// todo: filter leading/trailing whitespace
- if (!strcmp(key, "samples"))
+ if (streq(key, "samples"))
len = atoi(val);
- if (!strcmp(key, "freq"))
+ if (streq(key, "freq"))
hz = atof(val);
- if (!strcmp(key, "rel"))
+ if (streq(key, "rel"))
relative = atoi(val);
- if (!strcmp(key, "filter"))
+ if (streq(key, "filter"))
filter = atoi(val);
- if (!strcmp(key, "pss"))
+ if (streq(key, "pss"))
pss = atoi(val);
- if (!strcmp(key, "output"))
+ if (streq(key, "output"))
strncpy(output_path, val, PATH_MAX - 1);
- if (!strcmp(key, "init"))
+ if (streq(key, "init"))
strncpy(init_path, val, PATH_MAX - 1);
- if (!strcmp(key, "scale_x"))
+ if (streq(key, "scale_x"))
scale_x = atof(val);
- if (!strcmp(key, "scale_y"))
+ if (streq(key, "scale_y"))
scale_y = atof(val);
- if (!strcmp(key, "entropy"))
+ if (streq(key, "entropy"))
entropy = atoi(val);
}
fclose(f);