Home
last modified time | relevance | path

Searched refs:final_cmd (Results 1 – 2 of 2) sorted by relevance

/system/netd/
Dndc.c68 char *final_cmd; in do_cmd() local
75 final_cmd = strdup("0 "); in do_cmd()
77 final_cmd = strdup(""); in do_cmd()
79 if (final_cmd == NULL) { in do_cmd()
88 free(final_cmd); in do_cmd()
95 if (asprintf(&tmp_final_cmd, format, final_cmd, argv[i], in do_cmd()
99 free(final_cmd); in do_cmd()
102 free(final_cmd); in do_cmd()
103 final_cmd = tmp_final_cmd; in do_cmd()
106 if (write(sock, final_cmd, strlen(final_cmd) + 1) < 0) { in do_cmd()
[all …]
/system/vold/
Dvdc.c58 char final_cmd[255] = "0 "; /* 0 is a (now required) sequence number */ in do_cmd() local
70 ret = strlcat(final_cmd, cmp, sizeof(final_cmd)); in do_cmd()
71 if (ret >= sizeof(final_cmd)) in do_cmd()
76 if (write(sock, final_cmd, strlen(final_cmd) + 1) < 0) { in do_cmd()