aboutsummaryrefslogtreecommitdiffstats
path: root/plugins
diff options
context:
space:
mode:
authorJörg Mayer <jmayer@loplof.de>2004-07-23 23:28:08 +0000
committerJörg Mayer <jmayer@loplof.de>2004-07-23 23:28:08 +0000
commite869dbb17d934bfa0adf12515ff130a128d4604b (patch)
tree4bbde891c82d501a6aac6425648fa5a1d1990284 /plugins
parente7172b423bf2a5255edf342a4b901a0d9798ad4c (diff)
Trivial warning fixes:
- comma at end of enum - function declarations with empty args instead of void - c++ style comments svn path=/trunk/; revision=11492
Diffstat (limited to 'plugins')
-rw-r--r--plugins/opsi/packet-opsi.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/plugins/opsi/packet-opsi.c b/plugins/opsi/packet-opsi.c
index 4b2d9dd5ad..2dc26cb3c4 100644
--- a/plugins/opsi/packet-opsi.c
+++ b/plugins/opsi/packet-opsi.c
@@ -48,7 +48,7 @@
#include "packet-opsi.h"
-// Plugin exported constants
+/* Plugin exported constants */
#ifndef ENABLE_STATIC
G_MODULE_EXPORT const gchar version[] = VERSION;
#endif
@@ -430,11 +430,10 @@ dissect_attributes(tvbuff_t *tvb, proto_tree *opsi_tree, int offset, int length)
proto_tree *ntree = NULL;
while (length >= 4) {
- //i=0;
attribute_type = tvb_get_ntohs(tvb, offset);
attribute_length = tvb_get_ntohs(tvb, offset+2);
if (attribute_length > length) break;
- // We perform a standard log(n) lookup
+ /* We perform a standard log(n) lookup */
i = get_opsi_attribute_index(0, OPSI_ATTRIBUTES_COUNT-1, attribute_type);
if (i == -1) {
proto_tree_add_text(opsi_tree, tvb, offset, attribute_length, "Unknown attribute (%d)", attribute_type);