diff options
author | Denis Vlasenko | 2006-10-26 23:25:17 +0000 |
---|---|---|
committer | Denis Vlasenko | 2006-10-26 23:25:17 +0000 |
commit | ddec5af6b0803c7434a1cc2fdee5cb9873fe6bd0 (patch) | |
tree | f4f2aa58fa669aed6e2c50bb7aa648a79ec1873d /archival | |
parent | f0ed376eda5d5c25d270e5100a881fb2d801bee6 (diff) | |
download | busybox-ddec5af6b0803c7434a1cc2fdee5cb9873fe6bd0.zip busybox-ddec5af6b0803c7434a1cc2fdee5cb9873fe6bd0.tar.gz |
rename functions to more understandable names
Diffstat (limited to 'archival')
-rw-r--r-- | archival/dpkg.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/archival/dpkg.c b/archival/dpkg.c index 2f73721..2b9c4b8 100644 --- a/archival/dpkg.c +++ b/archival/dpkg.c @@ -787,7 +787,7 @@ static void index_status_file(const char *filename) unsigned int status_num; status_file = xfopen(filename, "r"); - while ((control_buffer = fgets_str(status_file, "\n\n")) != NULL) { + while ((control_buffer = xmalloc_fgets_str(status_file, "\n\n")) != NULL) { const unsigned int package_num = fill_package_struct(control_buffer); if (package_num != -1) { status_node = xmalloc(sizeof(status_node_t)); @@ -842,7 +842,7 @@ static void write_status_file(deb_file_t **deb_file) int i = 0; /* Update previously known packages */ - while ((control_buffer = fgets_str(old_status_file, "\n\n")) != NULL) { + while ((control_buffer = xmalloc_fgets_str(old_status_file, "\n\n")) != NULL) { if ((tmp_string = strstr(control_buffer, "Package:")) == NULL) { continue; } |