From 6f7b3b1be229e3a686a4507d6c11dfcf5f12cef4 Mon Sep 17 00:00:00 2001 From: Jan Kiszka Date: Wed, 20 Jul 2011 12:20:20 +0200 Subject: net: Refactor net_client_types Position entries of net_client_types according to the corresponding values of NET_CLIENT_TYPE_*. The array size is now defined by NET_CLIENT_TYPE_MAX. This will allow to obtain entries based on type value in later patches. At this chance rename NET_CLIENT_TYPE_SLIRP to NET_CLIENT_TYPE_USER for the sake of consistency. CC: Markus Armbruster Signed-off-by: Jan Kiszka Signed-off-by: Anthony Liguori --- net/slirp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'net/slirp.c') diff --git a/net/slirp.c b/net/slirp.c index 71e2577b6f..157b80a9f6 100644 --- a/net/slirp.c +++ b/net/slirp.c @@ -128,7 +128,7 @@ static void net_slirp_cleanup(VLANClientState *nc) } static NetClientInfo net_slirp_info = { - .type = NET_CLIENT_TYPE_SLIRP, + .type = NET_CLIENT_TYPE_USER, .size = sizeof(SlirpState), .receive = net_slirp_receive, .cleanup = net_slirp_cleanup, -- cgit v1.2.1