summaryrefslogtreecommitdiff
path: root/navit/tools/gpx2navit_txt/src/setmeta.c
diff options
context:
space:
mode:
Diffstat (limited to 'navit/tools/gpx2navit_txt/src/setmeta.c')
-rw-r--r--navit/tools/gpx2navit_txt/src/setmeta.c29
1 files changed, 14 insertions, 15 deletions
diff --git a/navit/tools/gpx2navit_txt/src/setmeta.c b/navit/tools/gpx2navit_txt/src/setmeta.c
index 86a22f70b..07bd0eab9 100644
--- a/navit/tools/gpx2navit_txt/src/setmeta.c
+++ b/navit/tools/gpx2navit_txt/src/setmeta.c
@@ -22,8 +22,7 @@
/**
* store gpx metadata into text file
*/
-void setMetadata(parsedata * pdata)
-{
+void setMetadata(parsedata * pdata) {
g2sprop *prop = pdata->prop;
g2sattr *attr = pdata->attr;
FILE *metafile;
@@ -32,41 +31,41 @@ void setMetadata(parsedata * pdata)
strcat(output, "_meta.txt");
metafile = fopen(output, "w");
if (metafile == NULL) {
- fprintf(stderr, "Cannot create file: %s\n", output);
- exit(ERR_CREATEFILE);
+ fprintf(stderr, "Cannot create file: %s\n", output);
+ exit(ERR_CREATEFILE);
}
if (attr->name) {
- fprintf(metafile, "name\t%s\n", attr->name);
+ fprintf(metafile, "name\t%s\n", attr->name);
}
if (attr->desc) {
- fprintf(metafile, "description\t%s\n", attr->desc);
+ fprintf(metafile, "description\t%s\n", attr->desc);
}
if (attr->author) {
- fprintf(metafile, "author\t%s\n", attr->author);
+ fprintf(metafile, "author\t%s\n", attr->author);
}
if (attr->copyright) {
- fprintf(metafile, "copyright\t%s\n", attr->copyright);
+ fprintf(metafile, "copyright\t%s\n", attr->copyright);
}
if (attr->link) {
- fprintf(metafile, "link\t%s\n", attr->link);
+ fprintf(metafile, "link\t%s\n", attr->link);
}
if (attr->time) {
- fprintf(metafile, "time\t%s\n", attr->time);
+ fprintf(metafile, "time\t%s\n", attr->time);
}
if (attr->keywords) {
- fprintf(metafile, "keywords\t%s\n", attr->keywords);
+ fprintf(metafile, "keywords\t%s\n", attr->keywords);
}
if (attr->minlat) {
- fprintf(metafile, "min latitude\t%f\n", attr->minlat);
+ fprintf(metafile, "min latitude\t%f\n", attr->minlat);
}
if (attr->minlon) {
- fprintf(metafile, "min longitude\t%f\n", attr->minlon);
+ fprintf(metafile, "min longitude\t%f\n", attr->minlon);
}
if (attr->maxlat) {
- fprintf(metafile, "max latitude\t%f\n", attr->maxlat);
+ fprintf(metafile, "max latitude\t%f\n", attr->maxlat);
}
if (attr->maxlon) {
- fprintf(metafile, "max longitude\t%f\n", attr->maxlon);
+ fprintf(metafile, "max longitude\t%f\n", attr->maxlon);
}
fclose(metafile);
free(output);