aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/epan/irda/packet-ircomm.c
diff options
context:
space:
mode:
authorGuy Harris <gharris@sonic.net>2021-04-30 03:18:25 -0700
committerGuy Harris <gharris@sonic.net>2021-04-30 03:19:19 -0700
commit57a1514ac74527651ad42dca3041f3f53509317e (patch)
treea69a01eaeac3d625a5312930fa81f0a3c6b12e96 /plugins/epan/irda/packet-ircomm.c
parent09147397007c5456fd5acd4794b5ba15330bdad3 (diff)
Cast away the return value of g_strlcpy() and g_strlcat().
Most of the time, the return value tells us nothing useful, as we've already decided that we're perfectly willing to live with string truncation. Hopefully this keeps Coverity from whining that those routines could return an error code (NARRATOR: They don't) and thus that we're ignoring the possibility of failure (as indicated, we've already decided that we can live with string truncation, so truncation is *NOT* a failure).
Diffstat (limited to 'plugins/epan/irda/packet-ircomm.c')
-rw-r--r--plugins/epan/irda/packet-ircomm.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/plugins/epan/irda/packet-ircomm.c b/plugins/epan/irda/packet-ircomm.c
index 9fd378f96b..01cedce377 100644
--- a/plugins/epan/irda/packet-ircomm.c
+++ b/plugins/epan/irda/packet-ircomm.c
@@ -257,15 +257,15 @@ static gboolean dissect_ircomm_parameters(tvbuff_t* tvb, guint offset, packet_in
pv = tvb_get_guint8(tvb, offset+2);
if (pv & IRCOMM_3_WIRE_RAW)
- g_strlcat(buf, ", 3-Wire raw", 256);
+ (void) g_strlcat(buf, ", 3-Wire raw", 256);
if (pv & IRCOMM_3_WIRE)
- g_strlcat(buf, ", 3-Wire", 256);
+ (void) g_strlcat(buf, ", 3-Wire", 256);
if (pv & IRCOMM_9_WIRE)
- g_strlcat(buf, ", 9-Wire", 256);
+ (void) g_strlcat(buf, ", 9-Wire", 256);
if (pv & IRCOMM_CENTRONICS)
- g_strlcat(buf, ", Centronics", 256);
+ (void) g_strlcat(buf, ", Centronics", 256);
- g_strlcat(buf, ")", 256);
+ (void) g_strlcat(buf, ")", 256);
if (strlen(buf) > 2)
proto_item_append_text(ti, "%s", buf+2);
@@ -279,11 +279,11 @@ static gboolean dissect_ircomm_parameters(tvbuff_t* tvb, guint offset, packet_in
pv = tvb_get_guint8(tvb, offset+2);
if (pv & IRCOMM_SERIAL)
- g_strlcat(buf, ", serial", 256);
+ (void) g_strlcat(buf, ", serial", 256);
if (pv & IRCOMM_PARALLEL)
- g_strlcat(buf, ", parallel", 256);
+ (void) g_strlcat(buf, ", parallel", 256);
- g_strlcat(buf, ")", 256);
+ (void) g_strlcat(buf, ")", 256);
if (strlen(buf) > 2)
proto_item_append_text(ti, "%s", buf+2);