aboutsummaryrefslogtreecommitdiff
path: root/archival
diff options
context:
space:
mode:
authorDenis Vlasenko <vda.linux@googlemail.com>2007-03-11 13:43:10 +0000
committerDenis Vlasenko <vda.linux@googlemail.com>2007-03-11 13:43:10 +0000
commitbaca1759129945fcd03d96ccc840892401b5a1af (patch)
tree5a3f14e441d313d974c851148046926980840510 /archival
parentecea8f201e77aff3e9a4fe5b3a435f463a842687 (diff)
downloadbusybox-baca1759129945fcd03d96ccc840892401b5a1af.tar.gz
kill superfluous returns at the end of void functions
Diffstat (limited to 'archival')
-rw-r--r--archival/dpkg.c8
-rw-r--r--archival/libunarchive/data_align.c5
-rw-r--r--archival/tar.c1
3 files changed, 0 insertions, 14 deletions
diff --git a/archival/dpkg.c b/archival/dpkg.c
index c86c583ab..9f7818ccf 100644
--- a/archival/dpkg.c
+++ b/archival/dpkg.c
@@ -706,7 +706,6 @@ static void set_status(const unsigned status_node_num, const char *new_value, co
new_status = xasprintf("%s %s %s", name_hashtable[want], name_hashtable[flag], name_hashtable[status]);
status_hashtable[status_node_num]->status = search_name_hashtable(new_status);
free(new_status);
- return;
}
static const char *describe_status(int status_num) {
@@ -763,7 +762,6 @@ static void index_status_file(const char *filename)
free(control_buffer);
}
fclose(status_file);
- return;
}
static void write_buffer_no_status(FILE *new_status_file, const char *control_buffer)
@@ -780,7 +778,6 @@ static void write_buffer_no_status(FILE *new_status_file, const char *control_bu
fprintf(new_status_file, "%s: %s\n", name, value);
}
}
- return;
}
/* This could do with a cleanup */
@@ -1425,8 +1422,6 @@ static void init_archive_deb_control(archive_handle_t *ar_handle)
/* Assign the tar handle as a subarchive of the ar handle */
ar_handle->sub_archive = tar_handle;
-
- return;
}
static void init_archive_deb_data(archive_handle_t *ar_handle)
@@ -1447,8 +1442,6 @@ static void init_archive_deb_data(archive_handle_t *ar_handle)
/* Assign the tar handle as a subarchive of the ar handle */
ar_handle->sub_archive = tar_handle;
-
- return;
}
static char *deb_extract_control_file_to_buffer(archive_handle_t *ar_handle, llist_t *myaccept)
@@ -1472,7 +1465,6 @@ static void data_extract_all_prefix(archive_handle_t *archive_handle)
archive_handle->file_header->name = xasprintf("%s%s", archive_handle->buffer, name_ptr);
data_extract_all(archive_handle);
}
- return;
}
static void unpack_package(deb_file_t *deb_file)
diff --git a/archival/libunarchive/data_align.c b/archival/libunarchive/data_align.c
index 81594d87c..946c94d0d 100644
--- a/archival/libunarchive/data_align.c
+++ b/archival/libunarchive/data_align.c
@@ -5,9 +5,6 @@
#include <sys/types.h>
-#include <errno.h>
-#include <unistd.h>
-
#include "libbb.h"
#include "unarchive.h"
@@ -17,6 +14,4 @@ void data_align(archive_handle_t *archive_handle, const unsigned short boundary)
archive_handle->seek(archive_handle, skip_amount);
archive_handle->offset += skip_amount;
-
- return;
}
diff --git a/archival/tar.c b/archival/tar.c
index 3ed0c3650..176a7e22d 100644
--- a/archival/tar.c
+++ b/archival/tar.c
@@ -134,7 +134,6 @@ static void freeHardLinkInfo(HardLinkInfo ** hlInfoHeadPtr)
}
*hlInfoHeadPtr = NULL;
}
- return;
}
/* Might be faster (and bigger) if the dev/ino were stored in numeric order;) */