move the RPKI_VERSION define into its own version.h file, helps portable.
authorbenno <benno@openbsd.org>
Wed, 14 Apr 2021 18:05:47 +0000 (18:05 +0000)
committerbenno <benno@openbsd.org>
Wed, 14 Apr 2021 18:05:47 +0000 (18:05 +0000)
ok claudio@

usr.sbin/rpki-client/extern.h
usr.sbin/rpki-client/main.c
usr.sbin/rpki-client/version.h [new file with mode: 0644]

index 47ef1af..1323c33 100644 (file)
@@ -1,4 +1,4 @@
-/*     $OpenBSD: extern.h,v 1.62 2021/04/01 16:04:48 claudio Exp $ */
+/*     $OpenBSD: extern.h,v 1.63 2021/04/14 18:05:47 benno Exp $ */
 /*
  * Copyright (c) 2019 Kristaps Dzonsons <kristaps@bsd.lv>
  *
@@ -541,6 +541,5 @@ int mkpath(const char *);
 
 #define                RPKI_PATH_OUT_DIR       "/var/db/rpki-client"
 #define                RPKI_PATH_BASE_DIR      "/var/cache/rpki-client"
-#define                RPKI_VERSION            "OpenBSD"
 
 #endif /* ! EXTERN_H */
index 94b5ac4..417f462 100644 (file)
@@ -1,4 +1,4 @@
-/*     $OpenBSD: main.c,v 1.135 2021/04/11 01:20:03 job Exp $ */
+/*     $OpenBSD: main.c,v 1.136 2021/04/14 18:05:47 benno Exp $ */
 /*
  * Copyright (c) 2019 Kristaps Dzonsons <kristaps@bsd.lv>
  *
@@ -40,6 +40,7 @@
 #include <imsg.h>
 
 #include "extern.h"
+#include "version.h"
 
 /*
  * Maximum number of TAL files we'll load.
diff --git a/usr.sbin/rpki-client/version.h b/usr.sbin/rpki-client/version.h
new file mode 100644 (file)
index 0000000..acec48f
--- /dev/null
@@ -0,0 +1,3 @@
+/* $OpenBSD: version.h,v 1.1 2021/04/14 18:05:47 benno Exp $ */
+
+#define RPKI_VERSION     "7.0"