summaryrefslogtreecommitdiff
path: root/epan/dissectors/packet-icq.c
diff options
context:
space:
mode:
authorBill Meier <wmeier@newsguy.com>2011-04-11 14:28:18 +0000
committerBill Meier <wmeier@newsguy.com>2011-04-11 14:28:18 +0000
commitea8b282a751999d3c66a440797e3ac32f304e3f0 (patch)
treef3daaafc7bf3a3fbb1b65578c772384e9dd10f45 /epan/dissectors/packet-icq.c
parenta460d35272d2a74928b78a4fb6fc4266441d0274 (diff)
downloadwireshark-ea8b282a751999d3c66a440797e3ac32f304e3f0.tar.gz
Don't assign to a proto_item * if the value won't be used: Coverity 928-932;
Also: remove some unneeded #includes. svn path=/trunk/; revision=36555
Diffstat (limited to 'epan/dissectors/packet-icq.c')
-rw-r--r--epan/dissectors/packet-icq.c13
1 files changed, 5 insertions, 8 deletions
diff --git a/epan/dissectors/packet-icq.c b/epan/dissectors/packet-icq.c
index c81beb79f2..363bb70564 100644
--- a/epan/dissectors/packet-icq.c
+++ b/epan/dissectors/packet-icq.c
@@ -37,9 +37,6 @@
#include <stddef.h>
#endif
-#include <stdlib.h>
-#include <ctype.h>
-#include <time.h>
#include <glib.h>
#include <epan/packet.h>
@@ -786,7 +783,7 @@ icqv5_cmd_rand_search(proto_tree* tree, /* Tree to put the data in */
if (tree){
if (size < 4) {
- ti = proto_tree_add_text(tree, tvb, offset, size,
+ proto_tree_add_text(tree, tvb, offset, size,
"Body (%d bytes, should be 4)", size);
return;
}
@@ -922,7 +919,7 @@ icqv5_cmd_send_msg(proto_tree* tree, tvbuff_t *tvb, int offset, int size,
if (tree) {
if (size < 4) {
- ti = proto_tree_add_text(tree, tvb, offset, size,
+ proto_tree_add_text(tree, tvb, offset, size,
"Body (%d bytes, should be >= 4)", size);
return;
}
@@ -1050,7 +1047,7 @@ icqv5_srv_login_reply(proto_tree* tree,/* Tree to put the data in */
if (tree) {
if (size < SRV_LOGIN_REPLY_IP + 8) {
- ti = proto_tree_add_text(tree, tvb, offset, size,
+ proto_tree_add_text(tree, tvb, offset, size,
"Body (%d bytes, should be %d)", size,
SRV_LOGIN_REPLY_IP + 8);
return;
@@ -1075,7 +1072,7 @@ icqv5_srv_user_online(proto_tree* tree,/* Tree to put the data in */
if (tree) {
if (size < SRV_LOGIN_REPLY_IP + 8) {
- ti = proto_tree_add_text(tree, tvb, offset, size,
+ proto_tree_add_text(tree, tvb, offset, size,
"Body (%d bytes, should be %d)", size,
SRV_LOGIN_REPLY_IP + 8);
return;
@@ -1118,7 +1115,7 @@ icqv5_srv_user_offline(proto_tree* tree,/* Tree to put the data in */
if (tree) {
if (size < SRV_USER_OFFLINE_UIN + 4) {
- ti = proto_tree_add_text(tree, tvb, offset, size,
+ proto_tree_add_text(tree, tvb, offset, size,
"Body (%d bytes, should be %d)", size,
SRV_USER_OFFLINE_UIN + 4);
return;