summaryrefslogtreecommitdiffstats
path: root/src/cmds_command.c
diff options
context:
space:
mode:
authorNicolas Pitre <nico@fluxnic.net>2021-03-20 17:02:22 -0400
committerNicolas Pitre <nico@fluxnic.net>2021-03-20 20:01:22 -0400
commit8657daadd3658f98bc72729ae1afc8ecf54b391d (patch)
tree2b69503f0e4471cdae28128ee423bb5d9873307b /src/cmds_command.c
parent5ab0f201ee0b5631939c30e323c2241007902dc8 (diff)
stop performing atoi() repeatedly on config values
Now that we store both the string and the numeric value for every config entries, let's grab those values directly. This should save quite some processing cycles. Those changes were performed with the following command: sed -e 's/atoi(get_conf_value *(\([^)]*\)))/get_conf_int(\1)/g' -i *.c *.y
Diffstat (limited to 'src/cmds_command.c')
-rw-r--r--src/cmds_command.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/cmds_command.c b/src/cmds_command.c
index bd37648..08ad76b 100644
--- a/src/cmds_command.c
+++ b/src/cmds_command.c
@@ -461,7 +461,7 @@ void do_commandmode(struct block * sb) {
create_structures();
readfile(name, 0);
- if (! atoi(get_conf_value("nocurses"))) {
+ if (! get_conf_int("nocurses")) {
ui_show_header();
}
}