Try rewriting in C.
This commit is contained in:
parent
61dd64c0e6
commit
d26b6b0b4a
2 changed files with 21 additions and 0 deletions
1
.gitignore
vendored
Normal file
1
.gitignore
vendored
Normal file
|
@ -0,0 +1 @@
|
|||
exporter
|
20
exporter.c
Normal file
20
exporter.c
Normal 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;
|
||||
}
|
Loading…
Reference in a new issue