From e869dbb17d934bfa0adf12515ff130a128d4604b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=B6rg=20Mayer?= Date: Fri, 23 Jul 2004 23:28:08 +0000 Subject: Trivial warning fixes: - comma at end of enum - function declarations with empty args instead of void - c++ style comments svn path=/trunk/; revision=11492 --- plugins/opsi/packet-opsi.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'plugins') 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); -- cgit v1.2.3