mirror of
https://dev.iopsys.eu/bbf/bbfdm.git
synced 2025-12-10 07:44:39 +01:00
Fix function name dm_base64_decode
base64_decode API is also exist in libeasy, so this name gives conflict error in compilation of the package which includes libbbfdm and libeasy both
This commit is contained in:
parent
f521ac7ef3
commit
e82527cd48
3 changed files with 5 additions and 5 deletions
|
|
@ -1782,7 +1782,7 @@ static int get_base64_char(char b64)
|
|||
return -1;
|
||||
}
|
||||
|
||||
char *base64_decode(const char *src)
|
||||
char *dm_base64_decode(const char *src)
|
||||
{
|
||||
int i, j = 0;
|
||||
|
||||
|
|
|
|||
|
|
@ -214,7 +214,7 @@ int bbfdm_get_references(struct dmctx *ctx, int match_action, const char *base_p
|
|||
int _bbfdm_get_references(struct dmctx *ctx, const char *base_path, const char *key_name, char *key_value, char **value);
|
||||
int bbfdm_get_reference_linker(struct dmctx *ctx, char *reference_path, struct dm_reference *reference_args);
|
||||
int bbfdm_operate_reference_linker(struct dmctx *ctx, const char *reference_path, char **reference_value);
|
||||
char *base64_decode(const char *src);
|
||||
char *dm_base64_decode(const char *src);
|
||||
void string_to_mac(const char *str, size_t str_len, char *out, size_t out_len);
|
||||
bool folder_exists(const char *path);
|
||||
bool file_exists(const char *path);
|
||||
|
|
|
|||
|
|
@ -980,11 +980,11 @@ static void test_bbf_api_common(void **state)
|
|||
|
||||
|
||||
/*
|
||||
* Test of base64_decode function
|
||||
* Test of dm_base64_decode function
|
||||
*/
|
||||
|
||||
// base64_decode: test
|
||||
value = base64_decode("YmJmX3VuaXRfdGVzdA");
|
||||
// dm_base64_decode: test
|
||||
value = dm_base64_decode("YmJmX3VuaXRfdGVzdA");
|
||||
assert_string_equal(value, "bbf_unit_test");
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue