/*
* Copyright (c) 2016 Fabien Siron <fabien.siron@epita.fr>
* Copyright (c) 2017 JingPiao Chen <chenjingpiao@gmail.com>
- * Copyright (c) 2017 The strace developers.
+ * Copyright (c) 2017-2018 The strace developers.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
if (len >= sizeof(req)) {
if (!umoven_or_printaddr(tcp, addr + offset,
sizeof(req) - offset,
- (void *) &req + offset)) {
+ (char *) &req + offset)) {
PRINT_FIELD_U("", req, sdiag_protocol);
PRINT_FIELD_FLAGS(", ", req, udiag_states,
tcp_state_flags, "1<<TCP_???");
return false;
print_array(tcp, addr, nmemb, &inode, sizeof(inode),
- umoven_or_printaddr, print_inode, 0);
+ tfetch_mem, print_inode, 0);
return true;
}
if (len >= sizeof(msg)) {
if (!umoven_or_printaddr(tcp, addr + offset,
sizeof(msg) - offset,
- (void *) &msg + offset)) {
+ (char *) &msg + offset)) {
PRINT_FIELD_XVAL("", msg, udiag_type,
socktypes, "SOCK_???");
PRINT_FIELD_XVAL(", ", msg, udiag_state,