From d26b6b0b4a30d39860480d245f41b85c1dc7dedb Mon Sep 17 00:00:00 2001 From: Joachim Desroches Date: Mon, 27 Sep 2021 14:46:40 +0200 Subject: [PATCH] Try rewriting in C. --- .gitignore | 1 + exporter.c | 20 ++++++++++++++++++++ 2 files changed, 21 insertions(+) create mode 100644 .gitignore create mode 100644 exporter.c diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..9cfaec5 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +exporter diff --git a/exporter.c b/exporter.c new file mode 100644 index 0000000..329f41f --- /dev/null +++ b/exporter.c @@ -0,0 +1,20 @@ +#include +#include + +#define USER "odoo" +#define HTTP_PORT 9402 +#define INTERVAL 10 + +int +main(int argc, char **argv) +{ + if (argc != 2) + { + fprintf(stdout, + "Invalid number of arguments. Usage: %s [dbname]\n", + argv[0]); + exit(EXIT_FAILURE); + } + + return EXIT_SUCCESS; +}