From: Davin McCall Date: Thu, 7 Jun 2018 22:13:59 +0000 (+0100) Subject: mconfig-gen: generate constexpr declarations. X-Git-Tag: v0.2.0~5 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=8b8e548a013b4d38afc13fa4c0b65560e2683e04;p=oweals%2Fdinit.git mconfig-gen: generate constexpr declarations. --- diff --git a/src/mconfig-gen.cc b/src/mconfig-gen.cc index 74b3a11..1472e2e 100644 --- a/src/mconfig-gen.cc +++ b/src/mconfig-gen.cc @@ -60,7 +60,7 @@ int main(int argc, char **argv) using namespace std; cout << "// This file is auto-generated by mconfig-gen.cc." << endl; - cout << "const static char SYSCONTROLSOCKET[] = " << stringify(vars["SYSCONTROLSOCKET"]) << ";" << endl; - cout << "const static char SBINDIR[] = " << stringify(vars["SBINDIR"]) << ";" << endl; + cout << "constexpr static char SYSCONTROLSOCKET[] = " << stringify(vars["SYSCONTROLSOCKET"]) << ";" << endl; + cout << "constexpr static char SBINDIR[] = " << stringify(vars["SBINDIR"]) << ";" << endl; return 0; }