Home | History | Annotate | Download | only in libdiskconfig

Lines Matching refs:tmp

39     char tmp[64];
43 strncpy(tmp, str, sizeof(tmp));
44 tmp[sizeof(tmp)-1] = '\0';
45 len_str = strlen(tmp);
51 switch(tmp[len_str - 1]) {
58 tmp[len_str - 1] = '\0';
64 *plen = strtoull(tmp, NULL, 0);
99 const char *tmp;
109 if (!(tmp = config_str(partnode, "type", NULL))) {
115 if (!strcmp(tmp, "linux")) {
117 } else if (!strcmp(tmp, "fat32")) {
120 ALOGE("Unsupported partition type found: %s", tmp);
124 if ((tmp = config_str(partnode, "len", NULL)) != NULL) {
126 if (parse_len(tmp, &len))
145 const char *tmp;
172 if (!(tmp = config_str(devroot, "path", path_override))) {
176 dinfo->device = strdup(tmp);
179 if (!(tmp = config_str(devroot, "scheme", NULL))) {
182 } else if (!strcmp(tmp, "mbr")) {
184 } else if (!strcmp(tmp, "gpt")) {
188 ALOGE("Unknown partition scheme specified: %s", tmp);
193 tmp = config_str(devroot, "sector_size", "512");
194 dinfo->sect_size = strtol(tmp, NULL, 0);
196 ALOGE("Invalid sector size: %s", tmp);
201 if (!(tmp = config_str(devroot, "start_lba", NULL))) {
206 if (!(dinfo->skip_lba = strtol(tmp, NULL, 0))) {
207 ALOGE("Invalid starting LBA (or zero): %s", tmp);
212 if (!(tmp = config_str(devroot, "num_lba", NULL))) {
216 dinfo->num_lba = strtoul(tmp, NULL, 0);