diff options
Diffstat (limited to 'libopkg')
-rw-r--r-- | libopkg/pkg_dest.c | 7 | ||||
-rw-r--r-- | libopkg/pkg_dest.h | 1 |
2 files changed, 0 insertions, 8 deletions
diff --git a/libopkg/pkg_dest.c b/libopkg/pkg_dest.c index 2adaf62..083f97c 100644 --- a/libopkg/pkg_dest.c +++ b/libopkg/pkg_dest.c @@ -56,8 +56,6 @@ int pkg_dest_init(pkg_dest_t *dest, const char *name, const char *root_dir,const sprintf_alloc(&dest->status_file_name, "%s/%s", dest->opkg_dir, OPKG_STATUS_FILE_SUFFIX); - dest->status_file = NULL; - return 0; } @@ -81,10 +79,5 @@ void pkg_dest_deinit(pkg_dest_t *dest) free(dest->status_file_name); dest->status_file_name = NULL; - if (dest->status_file) { - fclose(dest->status_file); - } - dest->status_file = NULL; - dest->root_dir = NULL; } diff --git a/libopkg/pkg_dest.h b/libopkg/pkg_dest.h index 0966a9c..b290664 100644 --- a/libopkg/pkg_dest.h +++ b/libopkg/pkg_dest.h @@ -29,7 +29,6 @@ struct pkg_dest char *lists_dir; char *info_dir; char *status_file_name; - FILE *status_file; }; int pkg_dest_init(pkg_dest_t *dest, const char *name, const char *root_dir,const char *lists_dir); |