diff options
author | Patrick Höhn <hoehnp@gmx.de> | 2018-02-12 22:26:18 +0100 |
---|---|---|
committer | Patrick Höhn <hoehnp@gmx.de> | 2018-02-12 22:26:18 +0100 |
commit | 0700a881fc413bd3ee4fb91a4a12c9227a2744e1 (patch) | |
tree | 37af21e379e4ce588cd03c8d7656e9eb89588178 /navit/maptool | |
parent | 3d525ff7a53d34cdc9e84a1c617525e0b5342d54 (diff) | |
download | navit-0700a881fc413bd3ee4fb91a4a12c9227a2744e1.tar.gz |
further adjustments according comments
Diffstat (limited to 'navit/maptool')
-rw-r--r-- | navit/maptool/zip.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/navit/maptool/zip.c b/navit/maptool/zip.c index 601d6eb67..ff9438786 100644 --- a/navit/maptool/zip.c +++ b/navit/maptool/zip.c @@ -182,7 +182,7 @@ write_zipmember(struct zip_info *zip_info, char *name, int filelen, char *data, free(compbuffer); } -void +int zip_write_index(struct zip_info *info) { int size=ftell(info->index); @@ -193,11 +193,13 @@ zip_write_index(struct zip_info *info) if (fread(buffer, size, 1, info->index) == 0){ dbg(lvl_warning, "fread failed"); + return 1; } else{ write_zipmember(info, "index", strlen("index"), buffer, size); } info->zipnum++; + return 0; } static void |