diff --git a/examples/examples_common.h b/examples/examples_common.h index d3f4e1aa..86fffebe 100644 --- a/examples/examples_common.h +++ b/examples/examples_common.h @@ -16,7 +16,7 @@ clients must be made or how a client should react. #include /** Zero a structure */ -#define ZERO_STRUCT(x) memset((char *)&(x), 0, sizeof(x)) +#define ZERO_STRUCT(x) memset(&(x), 0, sizeof(x)) int authenticate_console(ssh_session session); int authenticate_kbdint(ssh_session session, const char *password);