mirror of
https://github.com/brmlab/acarsdec.git
synced 2025-08-01 21:53:38 +02:00
load_aircraft_primary(): Verbose message on parse error
This commit is contained in:
parent
b0d1547048
commit
b8f0741727
1 changed files with 7 additions and 7 deletions
14
main.c
14
main.c
|
@ -77,43 +77,43 @@ void load_aircraft_primary(void)
|
|||
char *tabpos;
|
||||
|
||||
tabpos = strchr(item, '\t');
|
||||
if (!tabpos) continue;
|
||||
if (!tabpos) { fprintf(stderr, "Parse error on line: %s\n", line); continue; }
|
||||
tabpos[0] = 0;
|
||||
acars_aircrafts_primary[i].reg = strdup(item);
|
||||
item = tabpos + 1;
|
||||
|
||||
tabpos = strchr(item, '\t');
|
||||
if (!tabpos) continue;
|
||||
if (!tabpos) { fprintf(stderr, "Parse error on line: %s\n", line); continue; }
|
||||
tabpos[0] = 0;
|
||||
acars_aircrafts_primary[i].vendor = strdup(item);
|
||||
item = tabpos + 1;
|
||||
|
||||
tabpos = strchr(item, '\t');
|
||||
if (!tabpos) continue;
|
||||
if (!tabpos) { fprintf(stderr, "Parse error on line: %s\n", line); continue; }
|
||||
tabpos[0] = 0;
|
||||
acars_aircrafts_primary[i].short_type = strdup(item);
|
||||
item = tabpos + 1;
|
||||
|
||||
tabpos = strchr(item, '\t');
|
||||
if (!tabpos) continue;
|
||||
if (!tabpos) { fprintf(stderr, "Parse error on line: %s\n", line); continue; }
|
||||
tabpos[0] = 0;
|
||||
acars_aircrafts_primary[i].full_type = strdup(item);
|
||||
item = tabpos + 1;
|
||||
|
||||
tabpos = strchr(item, '\t');
|
||||
if (!tabpos) continue;
|
||||
if (!tabpos) { fprintf(stderr, "Parse error on line: %s\n", line); continue; }
|
||||
tabpos[0] = 0;
|
||||
acars_aircrafts_primary[i].cn = strdup(item);
|
||||
item = tabpos + 1;
|
||||
|
||||
tabpos = strchr(item, '\t');
|
||||
if (!tabpos) continue;
|
||||
if (!tabpos) { fprintf(stderr, "Parse error on line: %s\n", line); continue; }
|
||||
tabpos[0] = 0;
|
||||
acars_aircrafts_primary[i].carrier_iata = strdup(item);
|
||||
item = tabpos + 1;
|
||||
|
||||
tabpos = strchr(item, '\t');
|
||||
if (!tabpos) continue;
|
||||
if (!tabpos) { fprintf(stderr, "Parse error on line: %s\n", line); continue; }
|
||||
tabpos[0] = 0;
|
||||
acars_aircrafts_primary[i].carrier_icao = strdup(item);
|
||||
item = tabpos + 1;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue