mirror of
https://git.rwth-aachen.de/acs/public/villas/node/
synced 2025-03-09 00:00:00 +01:00
portability: more fixes for RPi
This commit is contained in:
parent
68df32a0e1
commit
e812a36a73
3 changed files with 6 additions and 3 deletions
|
@ -50,8 +50,9 @@ int main(int argc, char *argv[])
|
|||
const char *input_format = "villas.human";
|
||||
const char *output_format = "villas.human";
|
||||
|
||||
char c, *endptr;
|
||||
/* Parse optional command line arguments */
|
||||
int c;
|
||||
char *endptr;
|
||||
while ((c = getopt(argc, argv, "Vhd:i:o:")) != -1) {
|
||||
switch (c) {
|
||||
case 'V':
|
||||
|
|
|
@ -121,8 +121,9 @@ int main(int argc, char *argv[])
|
|||
|
||||
json_t *cfg_cli = json_object();
|
||||
|
||||
char c, *endptr;
|
||||
/* Parse optional command line arguments */
|
||||
int c;
|
||||
char *endptr;
|
||||
while ((c = getopt(argc, argv, "Vhv:d:f:o:")) != -1) {
|
||||
switch (c) {
|
||||
case 'V':
|
||||
|
|
|
@ -59,7 +59,8 @@ json_t * parse_cli(int argc, char *argv[])
|
|||
int limit = -1;
|
||||
|
||||
/* Parse optional command line arguments */
|
||||
char c, *endptr;
|
||||
int c;
|
||||
char *endptr;
|
||||
while ((c = getopt(argc, argv, "v:r:f:l:a:D:no:")) != -1) {
|
||||
switch (c) {
|
||||
case 'n':
|
||||
|
|
Loading…
Add table
Reference in a new issue