aboutsummaryrefslogtreecommitdiffstats
path: root/epan/dissectors/packet-p_mul.c
diff options
context:
space:
mode:
authorStephen Fisher <steve@stephen-fisher.com>2007-03-26 21:16:21 +0000
committerStephen Fisher <steve@stephen-fisher.com>2007-03-26 21:16:21 +0000
commitd565967b587a135772ff02e960ee4808a740acd3 (patch)
tree287d5d8612a868e8b4377ba3101570d8272d573f /epan/dissectors/packet-p_mul.c
parent25dbb9216f583d45eed12d9c2721e2e52b0cefee (diff)
From Peter Johansson:
Fix warnings svn path=/trunk/; revision=21214
Diffstat (limited to 'epan/dissectors/packet-p_mul.c')
-rw-r--r--epan/dissectors/packet-p_mul.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/epan/dissectors/packet-p_mul.c b/epan/dissectors/packet-p_mul.c
index 1136c36cd9..a10b230687 100644
--- a/epan/dissectors/packet-p_mul.c
+++ b/epan/dissectors/packet-p_mul.c
@@ -196,9 +196,9 @@ static guint16 checksum (guint8 *buffer, gint len, gint offset)
if ((c1 += c0) > 254) { c1 -= 255; }
}
- if ((cs = ((ctmp * c0) - c1) % 255L) < 0) { cs += 255; }
+ if ((cs = ((ctmp * c0) - c1) % 255) < 0) { cs += 255; }
ret = cs << 8;
- if ((cs = (c1 - ((ctmp + 1L) * c0)) % 255L) < 0) { cs += 255; }
+ if ((cs = (c1 - ((ctmp + 1L) * c0)) % 255) < 0) { cs += 255; }
ret |= cs;
return ret;