[Debian-eeepc-devel] [SCM] netcfg with wpa support for eeepc. branch, master, updated. 0af929015498ebe6565607564892f29c758ff3b1

Glenn Saberton gsaberton at foomagic.org
Wed Aug 13 10:34:37 UTC 2008


The following commit has been merged in the master branch:
commit 0af929015498ebe6565607564892f29c758ff3b1
Author: Glenn Saberton <gsaberton at foomagic.org>
Date:   Wed Aug 13 18:34:02 2008 +0800

    Whitespace changes

diff --git a/dhcp.c b/dhcp.c
index d58119c..37a5890 100644
--- a/dhcp.c
+++ b/dhcp.c
@@ -478,11 +478,11 @@ int netcfg_activate_dhcp (struct debconfclient *client)
                     for (;;) {
                         switch (wifistate) {
                         case ESSID:
-                            wifistate = ( netcfg_wireless_set_essid(client, interface, "high") == GO_BACK ) ?
+                            wifistate = (netcfg_wireless_set_essid(client, interface, "high") == GO_BACK ) ?
                                 ABORT : WEP;
                             break;
                         case WEP:
-                            wifistate = ( netcfg_wireless_set_wep (client, interface) == GO_BACK ) ?
+                            wifistate = (netcfg_wireless_set_wep(client, interface) == GO_BACK ) ?
                                 ESSID : DONE;
                             break;
                         case ABORT:
diff --git a/netcfg.c b/netcfg.c
index 710327b..3c638aa 100644
--- a/netcfg.c
+++ b/netcfg.c
@@ -61,7 +61,17 @@ 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;
@@ -239,14 +249,14 @@ int main(int argc, char *argv[])
             break;
             
         case WCONFIG_ESSID:
-            if (netcfg_wireless_set_essid (client, interface, NULL) == GO_BACK)
+            if (netcfg_wireless_set_essid(client, interface, NULL) == GO_BACK)
                 state = BACKUP;
             else
                 state = WCONFIG_WEP;
             break;
             
         case WCONFIG_WEP:
-            if (netcfg_wireless_set_wep (client, interface) == GO_BACK)
+            if (netcfg_wireless_set_wep(client, interface) == GO_BACK)
                 state = WCONFIG_ESSID;
             else
                 state = GET_METHOD;

-- 
netcfg with wpa support for eeepc.



More information about the Debian-eeepc-devel mailing list