[[RFC] Netcfg add WPA support 1/4] Whitespace changes to prepare for more cases.
Once the WPA cases are added, the enum spans many columns. Break it into one line per tag.
---
packages/netcfg/netcfg-static.c | 11 ++++++++++-
packages/netcfg/netcfg.c | 14 +++++++++++++-
2 files changed, 23 insertions(+), 2 deletions(-)
diff --git a/packages/netcfg/netcfg-static.c b/packages/netcfg/netcfg-static.c
index 8feac2c..d9962d5 100644
--- a/packages/netcfg/netcfg-static.c
+++ b/packages/netcfg/netcfg-static.c
@@ -33,7 +33,16 @@ int main(int argc, char** argv)
static struct debconfclient *client;
static int requested_wireless_tools = 0;
- enum { BACKUP, GET_INTERFACE, GET_HOSTNAME_ONLY, GET_STATIC, WCONFIG, WCONFIG_ESSID, WCONFIG_WEP, QUIT} state = GET_INTERFACE;
+ enum { BACKUP,
+ GET_INTERFACE,
+ GET_HOSTNAME_ONLY,
+ GET_STATIC,
+ WCONFIG,
+ WCONFIG_ESSID,
+ WCONFIG_WEP,
+ QUIT }
+
+ state = GET_INTERFACE;
/* initialize libd-i */
di_system_init("netcfg-static");
diff --git a/packages/netcfg/netcfg.c b/packages/netcfg/netcfg.c
index 710327b..38fc158 100644
--- a/packages/netcfg/netcfg.c
+++ b/packages/netcfg/netcfg.c
@@ -61,7 +61,19 @@ response_t netcfg_get_method(struct debconfclient *client)
int main(int argc, char *argv[])
{
int num_interfaces = 0;
- enum { BACKUP, GET_INTERFACE, GET_HOSTNAME_ONLY, GET_METHOD, GET_DHCP, GET_STATIC, WCONFIG, WCONFIG_ESSID, WCONFIG_WEP, QUIT } state = GET_INTERFACE;
+ enum { BACKUP,
+ GET_INTERFACE,
+ GET_HOSTNAME_ONLY,
+ GET_METHOD,
+ GET_DHCP,
+ GET_STATIC,
+ WCONFIG,
+ WCONFIG_ESSID,
+ WCONFIG_WEP,
+ QUIT }
+
+ state = GET_INTERFACE;
+
static struct debconfclient *client;
static int requested_wireless_tools = 0;
char **ifaces;
--
1.5.5.1
Reply to: