diff --git a/include/libssh2.h b/include/libssh2.h index 91f5f6f5..954dc168 100644 --- a/include/libssh2.h +++ b/include/libssh2.h @@ -222,6 +222,8 @@ typedef off_t libssh2_struct_stat_size; void **abstract)) #define LIBSSH2_FREE_FUNC(name) void ((name)(void *ptr, void **abstract)) +/* for pre-existing ones: !checksrc! disable TYPEDEFSTRUCT all */ + typedef struct _LIBSSH2_USERAUTH_KBDINT_PROMPT { unsigned char *text; diff --git a/include/libssh2_publickey.h b/include/libssh2_publickey.h index b875d52f..d844ad74 100644 --- a/include/libssh2_publickey.h +++ b/include/libssh2_publickey.h @@ -52,6 +52,7 @@ typedef struct _LIBSSH2_PUBLICKEY LIBSSH2_PUBLICKEY; +/* !checksrc! disable TYPEDEFSTRUCT 1 */ typedef struct _libssh2_publickey_attribute { const char *name; unsigned long name_len; @@ -60,6 +61,7 @@ typedef struct _libssh2_publickey_attribute { char mandatory; } libssh2_publickey_attribute; +/* !checksrc! disable TYPEDEFSTRUCT 1 */ typedef struct _libssh2_publickey_list { unsigned char *packet; /* For freeing */ diff --git a/scripts/checksrc-all.pl b/scripts/checksrc-all.pl index 6f40ff3a..cc17449e 100755 --- a/scripts/checksrc-all.pl +++ b/scripts/checksrc-all.pl @@ -12,7 +12,7 @@ use Cwd 'abs_path'; my @options = ( "-i4", "-m79", - "-AFIXME", "-AERRNOVAR", "-ATYPEDEFSTRUCT", + "-AFIXME", "-AERRNOVAR", "-aaccept", "-aatoi", "-acalloc",