0003-Fix-build-issue-with-uclibc.patch 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  1. From 082ee80d3524fa3474644c09b441d7f7947675cc Mon Sep 17 00:00:00 2001
  2. From: Gary Bisson <gary.bisson@boundarydevices.com>
  3. Date: Sun, 1 Dec 2024 15:43:56 +0100
  4. Subject: [PATCH] Fix build issue with uclibc
  5. Signed-off-by: Gary Bisson <gary.bisson@boundarydevices.com>
  6. ---
  7. core/adb/adb_auth_client.c | 2 +-
  8. core/adbd/adb_auth_client.c | 2 +-
  9. 2 files changed, 2 insertions(+), 2 deletions(-)
  10. diff --git a/core/adb/adb_auth_client.c b/core/adb/adb_auth_client.c
  11. index 0b4913e..068d837 100644
  12. --- a/core/adb/adb_auth_client.c
  13. +++ b/core/adb/adb_auth_client.c
  14. @@ -72,7 +72,7 @@ static void read_keys(const char *file, struct listnode *list)
  15. if (sep)
  16. *sep = '\0';
  17. - ret = __b64_pton(buf, (u_char *)&key->key, sizeof(key->key) + 4);
  18. + ret = b64_pton(buf, (u_char *)&key->key, sizeof(key->key) + 4);
  19. if (ret != sizeof(key->key)) {
  20. D("%s: Invalid base64 data ret=%d\n", file, ret);
  21. free(key);
  22. diff --git a/core/adbd/adb_auth_client.c b/core/adbd/adb_auth_client.c
  23. index 0b4913e..068d837 100644
  24. --- a/core/adbd/adb_auth_client.c
  25. +++ b/core/adbd/adb_auth_client.c
  26. @@ -72,7 +72,7 @@ static void read_keys(const char *file, struct listnode *list)
  27. if (sep)
  28. *sep = '\0';
  29. - ret = __b64_pton(buf, (u_char *)&key->key, sizeof(key->key) + 4);
  30. + ret = b64_pton(buf, (u_char *)&key->key, sizeof(key->key) + 4);
  31. if (ret != sizeof(key->key)) {
  32. D("%s: Invalid base64 data ret=%d\n", file, ret);
  33. free(key);
  34. --
  35. 2.47.0