summaryrefslogtreecommitdiffstats
path: root/minadbd/services.c
diff options
context:
space:
mode:
authorDan Albert <danalbert@google.com>2015-02-19 00:58:15 +0100
committerDan Albert <danalbert@google.com>2015-02-19 01:14:16 +0100
commit1ddd35050417b79307c5e0a989ee39d6ce2bfc1b (patch)
tree1c240abf3ee1868ea903618d474b7aae247ab6e6 /minadbd/services.c
parentMerge "Remove unused code." (diff)
downloadandroid_bootable_recovery-1ddd35050417b79307c5e0a989ee39d6ce2bfc1b.tar
android_bootable_recovery-1ddd35050417b79307c5e0a989ee39d6ce2bfc1b.tar.gz
android_bootable_recovery-1ddd35050417b79307c5e0a989ee39d6ce2bfc1b.tar.bz2
android_bootable_recovery-1ddd35050417b79307c5e0a989ee39d6ce2bfc1b.tar.lz
android_bootable_recovery-1ddd35050417b79307c5e0a989ee39d6ce2bfc1b.tar.xz
android_bootable_recovery-1ddd35050417b79307c5e0a989ee39d6ce2bfc1b.tar.zst
android_bootable_recovery-1ddd35050417b79307c5e0a989ee39d6ce2bfc1b.zip
Diffstat (limited to 'minadbd/services.c')
-rw-r--r--minadbd/services.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/minadbd/services.c b/minadbd/services.c
index 218b84a38..2a52eebae 100644
--- a/minadbd/services.c
+++ b/minadbd/services.c
@@ -47,9 +47,9 @@ void *service_bootstrap_func(void *x)
static void sideload_host_service(int sfd, void* cookie)
{
char* saveptr;
- const char* s = strtok_r(cookie, ":", &saveptr);
+ const char* s = adb_strtok_r(cookie, ":", &saveptr);
uint64_t file_size = strtoull(s, NULL, 10);
- s = strtok_r(NULL, ":", &saveptr);
+ s = adb_strtok_r(NULL, ":", &saveptr);
uint32_t block_size = strtoul(s, NULL, 10);
printf("sideload-host file size %llu block size %lu\n", file_size, block_size);