diff options
author | Dan Albert <danalbert@google.com> | 2015-02-19 01:17:37 +0100 |
---|---|---|
committer | Gerrit Code Review <noreply-gerritcodereview@google.com> | 2015-02-19 01:17:37 +0100 |
commit | 076f5479b592fc02f2f3e5436cad06b0a35d0521 (patch) | |
tree | 1c240abf3ee1868ea903618d474b7aae247ab6e6 /minadbd/services.c | |
parent | Merge "Remove unused code." (diff) | |
parent | Use headers from adb. (diff) | |
download | android_bootable_recovery-076f5479b592fc02f2f3e5436cad06b0a35d0521.tar android_bootable_recovery-076f5479b592fc02f2f3e5436cad06b0a35d0521.tar.gz android_bootable_recovery-076f5479b592fc02f2f3e5436cad06b0a35d0521.tar.bz2 android_bootable_recovery-076f5479b592fc02f2f3e5436cad06b0a35d0521.tar.lz android_bootable_recovery-076f5479b592fc02f2f3e5436cad06b0a35d0521.tar.xz android_bootable_recovery-076f5479b592fc02f2f3e5436cad06b0a35d0521.tar.zst android_bootable_recovery-076f5479b592fc02f2f3e5436cad06b0a35d0521.zip |
Diffstat (limited to 'minadbd/services.c')
-rw-r--r-- | minadbd/services.c | 4 |
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); |