summaryrefslogtreecommitdiff
path: root/print-atalk.c
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>2018-05-19 11:13:00 -0700
committerGuy Harris <guy@alum.mit.edu>2018-05-19 11:13:00 -0700
commit87a92d9f2820c4a0cbabe99e23ae48354b076545 (patch)
tree26e6cfd22d5c84a9e4dfa41a0fa21e662cb45d4d /print-atalk.c
parent6f2cd8cee6372b2d3f4783ce30a603b31839d31f (diff)
downloadtcpdump-87a92d9f2820c4a0cbabe99e23ae48354b076545.tar.gz
Pointers to packet bytes should be u_char *, not char *.
Diffstat (limited to 'print-atalk.c')
-rw-r--r--print-atalk.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/print-atalk.c b/print-atalk.c
index 6e1c3503..278495f8 100644
--- a/print-atalk.c
+++ b/print-atalk.c
@@ -479,13 +479,13 @@ nbp_print(netdissect_options *ndo,
}
/* print a counted string */
-static const char *
+static const u_char *
print_cstring(netdissect_options *ndo,
- const char *cp, const u_char *ep)
+ const u_char *cp, const u_char *ep)
{
u_int length;
- if (cp >= (const char *)ep) {
+ if (cp >= ep) {
nd_print_trunc(ndo);
return (0);
}
@@ -498,7 +498,7 @@ print_cstring(netdissect_options *ndo,
return (0);
}
while (length != 0) {
- if (cp >= (const char *)ep) {
+ if (cp >= ep) {
nd_print_trunc(ndo);
return (0);
}
@@ -543,7 +543,7 @@ static const struct atNBPtuple *
nbp_name_print(netdissect_options *ndo,
const struct atNBPtuple *tp, const u_char *ep)
{
- const char *cp = (const char *)tp + nbpTupleSize;
+ const u_char *cp = (const u_char *)tp + nbpTupleSize;
ND_PRINT(" ");