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

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