Try rewriting in C.

This commit is contained in:
Joachim Desroches 2021-09-27 14:46:40 +02:00
parent 61dd64c0e6
commit d26b6b0b4a
Signed by untrusted user who does not match committer: jdesroches
GPG Key ID: 6778C9C29C02D691
2 changed files with 21 additions and 0 deletions

1
.gitignore vendored Normal file
View File

@ -0,0 +1 @@
exporter

20
exporter.c Normal file
View File

@ -0,0 +1,20 @@
#include <stdio.h>
#include <stdlib.h>
#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;
}