aboutsummaryrefslogtreecommitdiffstats
path: root/asn1/cmip/packet-cmip-template.c
diff options
context:
space:
mode:
authoretxrab <etxrab@f5534014-38df-0310-8fa8-9805f1628bb7>2007-07-01 18:48:15 +0000
committeretxrab <etxrab@f5534014-38df-0310-8fa8-9805f1628bb7>2007-07-01 18:48:15 +0000
commite18c6024a882abffb944902032f9d46853f40c0d (patch)
treeb23c93e0b9872a65a4be85bb20f3da930a399cde /asn1/cmip/packet-cmip-template.c
parent8e82c3618b2dc574586a560032a745a828720caf (diff)
Try to fix defined but not used warnings and use the nice new table function to get the
list of Opcodes. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@22227 f5534014-38df-0310-8fa8-9805f1628bb7
Diffstat (limited to 'asn1/cmip/packet-cmip-template.c')
-rw-r--r--asn1/cmip/packet-cmip-template.c43
1 files changed, 1 insertions, 42 deletions
diff --git a/asn1/cmip/packet-cmip-template.c b/asn1/cmip/packet-cmip-template.c
index 174ba4e823..f151595eab 100644
--- a/asn1/cmip/packet-cmip-template.c
+++ b/asn1/cmip/packet-cmip-template.c
@@ -67,48 +67,7 @@ static gint ett_cmip = -1;
static guint32 opcode;
-static const value_string cmip_Opcode_vals[] = {
- { 0, "m-EventReport" },
- { 1, "m-EventReport-Confirmed" },
- { 2, "m-Linked-Reply" },
- { 3, "m-Get" },
- { 4, "m-Set" },
- { 5, "m-Set-Confirmed" },
- { 6, "m-Action" },
- { 7, "m-Action-Confirmed" },
- { 8, "m-Create" },
- { 9, "m-Delete" },
- { 10, "m-CancelGet" },
- { 0, NULL }
-};
-
-static const value_string cmip_error_code_vals[] = {
- { 0, "noSuchObjectClass" },
- { 1, "noSuchObjectInstance" },
- { 2, "accessDenied" },
- { 3, "syncNotSupported" },
- { 4, "invalidFilter" },
- { 5, "noSuchAttribute" },
- { 6, "invalidAttributeValue" },
- { 7, "getListError" },
- { 8, "setListError" },
- { 9, "noSuchAction" },
- { 10, "processingFailure" },
- { 11, "duplicateManagedObjectInstance" },
- { 12, "noSuchReferenceObject" },
- { 13, "noSuchEventType" },
- { 14, "noSuchArgument" },
- { 15, "invalidArgumentValue" },
- { 16, "invalidScope" },
- { 17, "invalidObjectInstance" },
- { 18, "missingAttributeValue" },
- { 19, "classInstanceConflict" },
- { 20, "complexityLimitation" },
- { 21, "mistypedOperation" },
- { 22, "noSuchInvokeId" },
- { 23, "operationCancelled" },
- { 0, NULL }
-};
+#include "packet-cmip-table.c"
static int opcode_type;
#define OPCODE_INVOKE 1