1
0
Fork 0
mirror of https://git.rwth-aachen.de/acs/public/villas/node/ synced 2025-03-09 00:00:00 +01:00

fix invalid return-type of getopt()

This commit is contained in:
Steffen Vogel 2018-11-30 19:57:22 +01:00
parent 1d36d817f0
commit 97181dc461
5 changed files with 10 additions and 5 deletions

View file

@ -50,7 +50,8 @@ int main(int argc, char *argv[])
const char *input_format = "villas.human";
const char *output_format = "villas.human";
char c, *endptr;
int c;
char *endptr;
while ((c = getopt(argc, argv, "Vhd:i:o:")) != -1) {
switch (c) {
case 'V':

View file

@ -121,7 +121,8 @@ int main(int argc, char *argv[])
json_t *cfg_cli = json_object();
char c, *endptr;
int c;
char *endptr;
while ((c = getopt(argc, argv, "Vhv:d:f:o:")) != -1) {
switch (c) {
case 'V':

View file

@ -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':

View file

@ -79,7 +79,8 @@ int main(int argc, char *argv[])
struct pool pool = { .state = STATE_DESTROYED };
/* Parse Arguments */
char c, *endptr;
int c;
char *endptr;
while ((c = getopt (argc, argv, "he:vtsf:V")) != -1) {
switch (c) {
case 'e':

View file

@ -87,7 +87,8 @@ int main(int argc, char *argv[])
int ret;
/* Parse Arguments */
char c, *endptr;
int c;
char *endptr;
while ((c = getopt (argc, argv, "w:h:r:f:c:b:V")) != -1) {
switch (c) {
case 'c':