summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorBen Pfaff <blp@nicira.com>2011-01-28 12:39:15 -0800
committerBen Pfaff <blp@nicira.com>2011-02-07 12:50:19 -0800
commit8274ae959ac0b158c3e3206b3810af608fb93785 (patch)
tree124a8644950a1b2ba571d157244b98d6ebf810df /tests
parent0a6f55420508c31af9fe41aafdd26ce8462cc1be (diff)
downloadopenvswitch-8274ae959ac0b158c3e3206b3810af608fb93785.tar.gz
daemon: Define daemon options enums the same way as other option enums.
Other modules that accept options use this style and I don't see a reason for the daemon code to be different. The style used by the daemon code until now runs the risk of ending up with conflicting values accidentally, which would be confusing.
Diffstat (limited to 'tests')
-rw-r--r--tests/test-jsonrpc.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/tests/test-jsonrpc.c b/tests/test-jsonrpc.c
index e8edec064..44edda84a 100644
--- a/tests/test-jsonrpc.c
+++ b/tests/test-jsonrpc.c
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2009, 2010 Nicira Networks.
+ * Copyright (c) 2009, 2010, 2011 Nicira Networks.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -53,7 +53,8 @@ static void
parse_options(int argc, char *argv[])
{
enum {
- OPT_BOOTSTRAP_CA_CERT = UCHAR_MAX + 1
+ OPT_BOOTSTRAP_CA_CERT = UCHAR_MAX + 1,
+ DAEMON_OPTION_ENUMS
};
static struct option long_options[] = {
{"verbose", optional_argument, 0, 'v'},