Skip to content

Commit 3ecb845

Browse files
committed
fix: add const to const variables
1 parent f6c673f commit 3ecb845

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

cvmassistants/keyprovider/key-provider-agent/src/key_provider_agent.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ int app_log_level = LOG_LEVEL_INFO; // Default to INFO level
2121
do { \
2222
if (app_log_level <= associated_level) { \
2323
time_t now = time(NULL); \
24-
struct tm *t = gmtime(&now); \
24+
const struct tm *t = gmtime(&now); \
2525
char ts[24]; \
2626
strftime(ts, sizeof(ts), "%Y-%m-%d %H:%M:%S UTC", t); \
2727
printf("%-29s [%-5s] [%s:%d] " fmt "\n", ts, level, __FILE__, __LINE__, \
@@ -147,7 +147,7 @@ int main(int argc, char **argv) {
147147
}
148148
} while (opt != -1);
149149

150-
char *wrap_key = generate_random_key();
150+
const char *wrap_key = generate_random_key();
151151
if (wrap_key == NULL) {
152152
LOG_ERROR("Failed to generate random wrap key");
153153
return -1;

0 commit comments

Comments
 (0)