summaryrefslogtreecommitdiff
path: root/source/libsmb/unexpected.c
diff options
context:
space:
mode:
Diffstat (limited to 'source/libsmb/unexpected.c')
-rw-r--r--source/libsmb/unexpected.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/source/libsmb/unexpected.c b/source/libsmb/unexpected.c
index 5aee16e4c61..97d6071e714 100644
--- a/source/libsmb/unexpected.c
+++ b/source/libsmb/unexpected.c
@@ -63,9 +63,9 @@ void unexpected_packet(struct packet_struct *p)
key.timestamp = p->timestamp;
key.count = count++;
- kbuf.dptr = (uint8_t *)&key;
+ kbuf.dptr = (char *)&key;
kbuf.dsize = sizeof(key);
- dbuf.dptr = (uint8_t *)buf;
+ dbuf.dptr = buf;
dbuf.dsize = len;
tdb_store(tdbd, kbuf, dbuf, TDB_REPLACE);
@@ -124,7 +124,7 @@ static int traverse_match(TDB_CONTEXT *ttdb, TDB_DATA kbuf, TDB_DATA dbuf, void
if (key.packet_type != match_type) return 0;
- p = parse_packet((char *)dbuf.dptr, dbuf.dsize, match_type);
+ p = parse_packet(dbuf.dptr, dbuf.dsize, match_type);
if ((match_type == NMB_PACKET &&
p->packet.nmb.header.name_trn_id == match_id) ||