aboutsummaryrefslogtreecommitdiff
path: root/networking/vconfig.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 /networking/vconfig.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 'networking/vconfig.c')
-rw-r--r--networking/vconfig.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/networking/vconfig.c b/networking/vconfig.c
index 4776e1324..8bd88701f 100644
--- a/networking/vconfig.c
+++ b/networking/vconfig.c
@@ -63,7 +63,7 @@ static const char *xfind_str(const char *table, const char *str)
63 return table - 1; 63 return table - 1;
64} 64}
65 65
66static const char cmds[] = { 66static const char cmds[] ALIGN1 = {
67 4, ADD_VLAN_CMD, 7, 67 4, ADD_VLAN_CMD, 7,
68 'a', 'd', 'd', 0, 68 'a', 'd', 'd', 0,
69 3, DEL_VLAN_CMD, 7, 69 3, DEL_VLAN_CMD, 7,
@@ -85,7 +85,7 @@ static const char cmds[] = {
85 'm', 'a', 'p', 0, 85 'm', 'a', 'p', 0,
86}; 86};
87 87
88static const char name_types[] = { 88static const char name_types[] ALIGN1 = {
89 VLAN_NAME_TYPE_PLUS_VID, 16, 89 VLAN_NAME_TYPE_PLUS_VID, 16,
90 'V', 'L', 'A', 'N', 90 'V', 'L', 'A', 'N',
91 '_', 'P', 'L', 'U', 'S', '_', 'V', 'I', 'D', 91 '_', 'P', 'L', 'U', 'S', '_', 'V', 'I', 'D',
@@ -104,7 +104,7 @@ static const char name_types[] = {
104 '_', 'N', 'O', '_', 'P', 'A', 'D', 0, 104 '_', 'N', 'O', '_', 'P', 'A', 'D', 0,
105}; 105};
106 106
107static const char conf_file_name[] = "/proc/net/vlan/config"; 107static const char conf_file_name[] ALIGN1 = "/proc/net/vlan/config";
108 108
109int vconfig_main(int argc, char **argv); 109int vconfig_main(int argc, char **argv);
110int vconfig_main(int argc, char **argv) 110int vconfig_main(int argc, char **argv)