aboutsummaryrefslogtreecommitdiff
path: root/archival/dpkg.c
diff options
context:
space:
mode:
authorDenis Vlasenko <vda.linux@googlemail.com>2007-08-12 20:58:27 +0000
committerDenis Vlasenko <vda.linux@googlemail.com>2007-08-12 20:58:27 +0000
commit6ca409e0e4c198fe3081346eebbae3f068fe605a (patch)
tree060cb05d99220a1eda399194d1209c269f0e8cd8 /archival/dpkg.c
parent4185548984357df91311f30c8e43d95f33922576 (diff)
downloadbusybox-w32-6ca409e0e4c198fe3081346eebbae3f068fe605a.tar.gz
busybox-w32-6ca409e0e4c198fe3081346eebbae3f068fe605a.tar.bz2
busybox-w32-6ca409e0e4c198fe3081346eebbae3f068fe605a.zip
trylink: produce even more info about final link stage
trylink: explain how to modify link and drastically decrease amount of padding (unfortunately, needs hand editing ATM). *: add ALIGN1 / ALIGN2 to global strings and arrays of bytes and shorts size saving: 0.5k
Diffstat (limited to 'archival/dpkg.c')
-rw-r--r--archival/dpkg.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/archival/dpkg.c b/archival/dpkg.c
index bd729a2a9..0c1f96fc9 100644
--- a/archival/dpkg.c
+++ b/archival/dpkg.c
@@ -582,7 +582,8 @@ static int read_package_field(const char *package_buffer, char **field_name, cha
582 582
583static unsigned fill_package_struct(char *control_buffer) 583static unsigned fill_package_struct(char *control_buffer)
584{ 584{
585 static const char field_names[] = "Package\0""Version\0" 585 static const char field_names[] ALIGN1 =
586 "Package\0""Version\0"
586 "Pre-Depends\0""Depends\0""Replaces\0""Provides\0" 587 "Pre-Depends\0""Depends\0""Replaces\0""Provides\0"
587 "Conflicts\0""Suggests\0""Recommends\0""Enhances\0"; 588 "Conflicts\0""Suggests\0""Recommends\0""Enhances\0";
588 589
@@ -1226,7 +1227,7 @@ static int run_package_script(const char *package_name, const char *script_type)
1226 return result; 1227 return result;
1227} 1228}
1228 1229
1229static const char *all_control_files[] = { 1230static const char *const all_control_files[] = {
1230 "preinst", "postinst", "prerm", "postrm", 1231 "preinst", "postinst", "prerm", "postrm",
1231 "list", "md5sums", "shlibs", "conffiles", 1232 "list", "md5sums", "shlibs", "conffiles",
1232 "config", "templates", NULL 1233 "config", "templates", NULL