From 03524ce74873a0df201894e6ae5f77a711d78849 Mon Sep 17 00:00:00 2001 From: Samuel Ortiz Date: Thu, 22 Jul 2010 13:43:35 +0200 Subject: [PATCH] Fix GDHCPClientError typo --- gdhcp/client.c | 2 +- gdhcp/gdhcp.h | 2 +- tools/dhcp-test.c | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/gdhcp/client.c b/gdhcp/client.c index a6f0e8a..3226392 100644 --- a/gdhcp/client.c +++ b/gdhcp/client.c @@ -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; } diff --git a/gdhcp/gdhcp.h b/gdhcp/gdhcp.h index f335f0b..b18300f 100644 --- a/gdhcp/gdhcp.h +++ b/gdhcp/gdhcp.h @@ -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, diff --git a/tools/dhcp-test.c b/tools/dhcp-test.c index 325123d..a86ec2a 100644 --- a/tools/dhcp-test.c +++ b/tools/dhcp-test.c @@ -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: -- 2.7.4