Skip to content

Compile PlatON warning in function check_platon_wallet #1234

@PanHH

Description

@PanHH

Describe the bug
Compile PlatON warning in function check_platon_wallet

01Wallet.c: In function 'check_platon_wallet':
01Wallet.c:28:22: warning: pointer targets in passing argument 1 of 'strncmp' differ in signedness [-Wpointer-sign]
     result = strncmp(wallet_ptr->account_info.prikeyCtx.extra_data.value, platon_private_key_buf, strlen(platon_private_key_buf));
                      ^~~~~~~~~~
In file included from /usr/include/check.h:26:0,
                 from tcase_platon.h:20,
                 from 01Wallet.c:16:
/usr/include/string.h:139:12: note: expected 'const char *' but argument is of type 'BUINT8 * {aka unsigned char *}'
 extern int strncmp (const char *__s1, const char *__s2, size_t __n)
            ^~~~~~~

1667356030144

Metadata

Metadata

Assignees

Labels

Priority/P4Lowest priority. Minor issues or suggestions, awaiting more evidence before prioritizing.Severity/minorMinor features.enhancementNew feature or request

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions