aboutsummaryrefslogtreecommitdiff
path: root/ofproto/ofproto.h
diff options
context:
space:
mode:
authorBen Pfaff <blp@nicira.com>2013-02-11 23:55:31 -0800
committerBen Pfaff <blp@nicira.com>2013-02-11 23:55:31 -0800
commitf4f1ea7eaca92e2ca44c9624b3bb7d6426b2ddea (patch)
treecd4f6d98df6157ac76337ce8e9a1df38eec06e50 /ofproto/ofproto.h
parent964a5f60c0b38e59993e92425709579b3394349a (diff)
ofp-util: Simplify struct ofputil_role_request.
It makes more sense to use enum ofp12_controller_role here than to use enum nx_role, because the former is a superset of the latter and we can then get rid of a bool member too. Signed-off-by: Ben Pfaff <blp@nicira.com>
Diffstat (limited to 'ofproto/ofproto.h')
-rw-r--r--ofproto/ofproto.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/ofproto/ofproto.h b/ofproto/ofproto.h
index 9e55f650..3a66d1bf 100644
--- a/ofproto/ofproto.h
+++ b/ofproto/ofproto.h
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2009, 2010, 2011, 2012 Nicira, Inc.
+ * Copyright (c) 2009, 2010, 2011, 2012, 2013 Nicira, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -44,7 +44,7 @@ struct netdev_stats;
struct ofproto_controller_info {
bool is_connected;
- enum nx_role role;
+ enum ofp12_controller_role role;
struct {
const char *keys[4];
const char *values[4];