aboutsummaryrefslogtreecommitdiffstats
path: root/src/basecmd.c
diff options
context:
space:
mode:
authorKevin O'Connor <kevin@koconnor.net>2019-03-04 23:35:11 -0500
committerKevinOConnor <kevin@koconnor.net>2019-03-17 19:38:18 -0400
commitb28e95ca1aa2860c0869041c29a3ba27054e5967 (patch)
treeb507c6a45c52fff68a449f20213d39b6bc8e4a29 /src/basecmd.c
parent7eda55e2b042566020ade34d7b2cdb9296f37f1d (diff)
downloadkutter-b28e95ca1aa2860c0869041c29a3ba27054e5967.tar.gz
kutter-b28e95ca1aa2860c0869041c29a3ba27054e5967.tar.xz
kutter-b28e95ca1aa2860c0869041c29a3ba27054e5967.zip
command: Always pass a string to the DECL_CONSTANT() macro
Make it clear that the name of the constant being defined is a string. When the value being defined is also a string, use a new DECL_CONSTANT_STR() macro. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
Diffstat (limited to 'src/basecmd.c')
-rw-r--r--src/basecmd.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/basecmd.c b/src/basecmd.c
index f554c13e..95511885 100644
--- a/src/basecmd.c
+++ b/src/basecmd.c
@@ -258,7 +258,7 @@ command_get_uptime(uint32_t *args)
DECL_COMMAND_FLAGS(command_get_uptime, HF_IN_SHUTDOWN, "get_uptime");
#define SUMSQ_BASE 256
-DECL_CONSTANT(STATS_SUMSQ_BASE, SUMSQ_BASE);
+DECL_CONSTANT("STATS_SUMSQ_BASE", SUMSQ_BASE);
void
stats_update(uint32_t start, uint32_t cur)