mirror of
https://github.com/libssh2/libssh2.git
synced 2026-10-24 03:48:58 +03:00
checksrc: stop disabling TYPEDEFSTRUCT globally
Silence locally in public headers. They are part of the documented public interface, removing them would be a breaking change. Follow-up to35aa0b2cd7#1910 Follow-up to7dd7e62629#1909 Follow-up toc07e953a2f#1908 Follow-up to967647c4da#1907 Closes #1912
This commit is contained in:
@@ -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;
|
||||
|
||||
@@ -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 */
|
||||
|
||||
|
||||
@@ -12,7 +12,7 @@ use Cwd 'abs_path';
|
||||
|
||||
my @options = (
|
||||
"-i4", "-m79",
|
||||
"-AFIXME", "-AERRNOVAR", "-ATYPEDEFSTRUCT",
|
||||
"-AFIXME", "-AERRNOVAR",
|
||||
"-aaccept",
|
||||
"-aatoi",
|
||||
"-acalloc",
|
||||
|
||||
Reference in New Issue
Block a user