Skip to content

Commit

Permalink
3.3: fix error message IO
Browse files Browse the repository at this point in the history
  • Loading branch information
zvezdochiot committed Jul 20, 2022
1 parent 53051ed commit 65c5300
Show file tree
Hide file tree
Showing 10 changed files with 17 additions and 13 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@ Name: GeoFindKey
OldName: FindKey
URL: https://github.com/Geo-Linux-Calculations/geofindkey

3.3

fix error message IO

3.2

fix coordinate deformation
Expand Down
Binary file removed doc/conformal_trans_1-4power-ru.cbz
Binary file not shown.
Binary file added doc/conformal_trans_1-4power-ru.pdf
Binary file not shown.
4 changes: 2 additions & 2 deletions src/geoconformal.c
Original file line number Diff line number Diff line change
Expand Up @@ -311,12 +311,12 @@ int main(int argc, char *argv[])

if ((fpin = fopen(argv[optind], "r")) == NULL)
{
fprintf(stderr, "can't open %s\n", argv[1]);
fprintf(stderr, "can't open %s\n", argv[optind]);
exit(EXIT_FAILURE);
}
if ((fpout = fopen(argv[optind + 1], "w")) == NULL)
{
fprintf(stderr, "can't create %s\n", argv[2]);
fprintf(stderr, "can't create %s\n", argv[optind + 1]);
exit(EXIT_FAILURE);
}

Expand Down
4 changes: 2 additions & 2 deletions src/geodeform500.c
Original file line number Diff line number Diff line change
Expand Up @@ -162,12 +162,12 @@ int main(int argc, char *argv[])

if ((fpin = fopen(argv[optind], "r")) == NULL)
{
fprintf(stderr, "can't open %s\n", argv[1]);
fprintf(stderr, "can't open %s\n", argv[optind]);
exit(EXIT_FAILURE);
}
if ((fpout = fopen(argv[optind + 1], "w")) == NULL)
{
fprintf(stderr, "can't create %s\n", argv[2]);
fprintf(stderr, "can't create %s\n", argv[optind + 1]);
exit(EXIT_FAILURE);
}

Expand Down
4 changes: 2 additions & 2 deletions src/geofindkey.c
Original file line number Diff line number Diff line change
Expand Up @@ -182,12 +182,12 @@ int main(int argc, char *argv[])

if ((fpin = fopen(argv[optind], "r")) == NULL)
{
fprintf(stderr, "can't open %s\n", argv[1]);
fprintf(stderr, "can't open %s\n", argv[optind]);
exit(EXIT_FAILURE);
}
if ((fpout = fopen(argv[optind + 1], "w")) == NULL)
{
fprintf(stderr, "can't create %s\n", argv[2]);
fprintf(stderr, "can't create %s\n", argv[optind + 1]);
exit(EXIT_FAILURE);
}

Expand Down
2 changes: 1 addition & 1 deletion src/geofindkey.h
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ Author: Zoltan Siki (https://github.com/zsiki)
#ifndef __GEOFINDKEY_H
#define __GEOFINDKEY_H

#define PVERSION "3.2"
#define PVERSION "3.3"

#define defDecimals 4
#define defREarth 6370009.0
Expand Down
4 changes: 2 additions & 2 deletions src/geohelmert3d.c
Original file line number Diff line number Diff line change
Expand Up @@ -181,12 +181,12 @@ int main(int argc, char *argv[])

if ((fpin = fopen(argv[optind], "r")) == NULL)
{
fprintf(stderr, "can't open %s\n", argv[1]);
fprintf(stderr, "can't open %s\n", argv[optind]);
exit(EXIT_FAILURE);
}
if ((fpout = fopen(argv[optind + 1], "w")) == NULL)
{
fprintf(stderr, "can't create %s\n", argv[2]);
fprintf(stderr, "can't create %s\n", argv[optind + 1]);
exit(EXIT_FAILURE);
}

Expand Down
4 changes: 2 additions & 2 deletions src/geositer500.c
Original file line number Diff line number Diff line change
Expand Up @@ -191,12 +191,12 @@ int main(int argc, char *argv[])

if ((fpin = fopen(argv[optind], "r")) == NULL)
{
fprintf(stderr, "can't open %s\n", argv[1]);
fprintf(stderr, "can't open %s\n", argv[optind]);
exit(EXIT_FAILURE);
}
if ((fpout = fopen(argv[optind + 1], "w")) == NULL)
{
fprintf(stderr, "can't create %s\n", argv[2]);
fprintf(stderr, "can't create %s\n", argv[optind + 1]);
exit(EXIT_FAILURE);
}

Expand Down
4 changes: 2 additions & 2 deletions src/geoszbtoyxh.c
Original file line number Diff line number Diff line change
Expand Up @@ -193,7 +193,7 @@ int main(int argc, char *argv[])
{
if ((fpin = fopen(argv[optind], "r")) == NULL)
{
fprintf(stderr, "can't open %s\n", argv[1]);
fprintf(stderr, "can't open %s\n", argv[optind]);
exit(EXIT_FAILURE);
}
}
Expand All @@ -205,7 +205,7 @@ int main(int argc, char *argv[])
{
if ((fpout = fopen(argv[optind + 1], "w")) == NULL)
{
fprintf(stderr, "can't create %s\n", argv[2]);
fprintf(stderr, "can't create %s\n", argv[optind + 1]);
exit(EXIT_FAILURE);
}
}
Expand Down

0 comments on commit 65c5300

Please sign in to comment.