From 4b266e7c5e57fbdb07f11a6fc1edd5f25cee2dd2 Mon Sep 17 00:00:00 2001 From: Wolfgang Hottgenroth Date: Thu, 11 Feb 2021 10:39:31 +0100 Subject: [PATCH] openbsd or not --- sink/Makefile | 5 ----- sink/sink20169.c | 4 ++++ 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/sink/Makefile b/sink/Makefile index fdae671..ba92f62 100644 --- a/sink/Makefile +++ b/sink/Makefile @@ -39,8 +39,3 @@ $(BUILD_DIR): .phony: clean clean: -rm -rf $(BUILD_DIR) - -.phony: show -show: - echo $(CFLAGS) - diff --git a/sink/sink20169.c b/sink/sink20169.c index bcea580..9fb022b 100644 --- a/sink/sink20169.c +++ b/sink/sink20169.c @@ -275,7 +275,11 @@ int forwardMinuteBuffer(t_forwarderHandle *handle, t_minuteBuffer *buf) { char payload[256]; int res = snprintf(payload, sizeof(payload), "%s,valid=1,location=%s,host=%s freq=%d.%03d" +#if OS = OpenBSD " %llu" +#else + " %lu" +#endif "", handle->influxMeasurement, location, buf->s.deviceId, frequency_before_point, frequency_behind_point,