@cryptotaxi247 / netdata-1 / commits / b57e570e1

fix compilation on windows (#19354)

Costa Tsaousis committed Jan 9, 2025 at 01:04 UTC b57e570e1c83069bf3aacf639da00f5a5a4f7e4f
2 files changed +3 -3
src/libnetdata/log/nd_log-internals.c
+1 -1
@@ -428,7 +428,7 @@ __thread struct log_field thread_log_fields[_NDF_MAX] = {
428 .journal = "WINERROR",
429 .eventlog = "WindowsLastError",
430 .logfmt = "winerror",
431 - .annotator = winerror_annotator,
431 + .logfmt_annotator = winerror_annotator,
432 #endif
433 },
434 [NDF_INVOCATION_ID] = {
src/libnetdata/log/nd_log-to-windows-events.c
+2 -2
@@ -325,8 +325,8 @@ static const char *get_field_value_unsafe(struct log_field *fields, ND_LOG_FIELD
325 static char number_str[MAX(MAX(UINT64_MAX_LENGTH, DOUBLE_MAX_LENGTH), UUID_STR_LEN)];
326
327 const char *s = NULL;
328 - if (fields[i].annotator)
329 - s = fields[i].annotator(&fields[i]);
328 + if (fields[i].logfmt_annotator)
329 + s = fields[i].logfmt_annotator(&fields[i]);
330
331 else
332 switch (fields[i].entry.type) {