From: Scott Worley Date: Wed, 13 Sep 2023 18:41:53 +0000 (-0700) Subject: appease clang-tidy: More const X-Git-Tag: v1.0.0~10 X-Git-Url: http://git.scottworley.com/tl-append/commitdiff_plain/0c5417d5f47201c1b423dd9bb710ccfde06417da?hp=4b4feda25fa71fa0e695206bff02c90613b1f7a8 appease clang-tidy: More const --- diff --git a/common.c b/common.c index 1bc1102..747111b 100644 --- a/common.c +++ b/common.c @@ -4,7 +4,7 @@ #include #include -const char *FILENAME = "tl.log"; +const char *const FILENAME = "tl.log"; void die(const char *message) { fputs(message, stderr); diff --git a/common.h b/common.h index 8d40a78..93d722f 100644 --- a/common.h +++ b/common.h @@ -1,6 +1,6 @@ #include -extern const char *FILENAME; +extern const char *const FILENAME; void die(const char *message);