1
0
mirror of https://git.libssh.org/projects/libssh.git synced 2025-10-24 14:52:57 +03:00

Remove unnecessary char* cast in memset call in examples/examples_common.h

Signed-off-by: Navid Fayezi navidfayezi.98@gmail.com
Reviewed-by: Jakub Jelen <jjelen@redhat.com>
Reviewed-by: Andreas Schneider <asn@cryptomilk.org>
This commit is contained in:
Navid
2025-06-08 16:12:31 -06:00
committed by Jakub Jelen
parent 72c282434b
commit 33a947dcb0

View File

@@ -16,7 +16,7 @@ clients must be made or how a client should react.
#include <libssh/libssh.h>
/** 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);