Fix GDHCPClientError typo
authorSamuel Ortiz <sameo@linux.intel.com>
Thu, 22 Jul 2010 11:43:35 +0000 (13:43 +0200)
committerSamuel Ortiz <sameo@linux.intel.com>
Thu, 22 Jul 2010 11:43:35 +0000 (13:43 +0200)
gdhcp/client.c
gdhcp/gdhcp.h
tools/dhcp-test.c

index a6f0e8a5282b676882f0d3b24aad5a67806bfcd8..322639263f510d34a929cef741420d5b7d7261a5 100644 (file)
@@ -372,7 +372,7 @@ GDHCPClient *g_dhcp_client_new(GDHCPType type,
 
        dhcp_client->interface = get_interface_name(ifindex);
        if (dhcp_client->interface == NULL) {
-               *error = G_DHCP_CLIENT_ERROR_INERFACE_UNAVAILABLE;
+               *error = G_DHCP_CLIENT_ERROR_INTERFACE_UNAVAILABLE;
                goto error;
        }
 
index f335f0b18c2661c6ee913808a69301fa8ddc46a4..b18300fcace924a9985efddcfd40eb0992b4d1a3 100644 (file)
@@ -34,7 +34,7 @@ typedef struct _GDHCPClient GDHCPClient;
 
 typedef enum {
        G_DHCP_CLIENT_ERROR_NONE,
-       G_DHCP_CLIENT_ERROR_INERFACE_UNAVAILABLE,
+       G_DHCP_CLIENT_ERROR_INTERFACE_UNAVAILABLE,
        G_DHCP_CLIENT_ERROR_INTERFACE_IN_USE,
        G_DHCP_CLIENT_ERROR_INTERFACE_DOWN,
        G_DHCP_CLIENT_ERROR_NOMEM,
index 325123d8dc7ea826dad43492723ba6056406a30e..a86ec2a6544d1071da61f154418994f6a1978d78 100644 (file)
@@ -68,7 +68,7 @@ static void handle_error(GDHCPClientError error)
        case G_DHCP_CLIENT_ERROR_NONE:
                printf("dhcp client ok\n");
                break;
-       case G_DHCP_CLIENT_ERROR_INERFACE_UNAVAILABLE:
+       case G_DHCP_CLIENT_ERROR_INTERFACE_UNAVAILABLE:
                printf("Interface unavailable\n");
                break;
        case G_DHCP_CLIENT_ERROR_INTERFACE_IN_USE: