search for: type_temp

Displaying 2 results from an estimated 2 matches for "type_temp".

2015 Mar 13
2
[PATCH] part-list: add support for show partition type
..._rows * sizeof (guestfs_int_partition)); + if (r->guestfs_int_partition_list_val == NULL) { + reply_with_perror ("malloc"); + goto error2; + } + + /* Now parse the lines. */ + size_t i, k; + if (has_type) { + /* hold type such as primary, logical and extended */ + char type_temp[16]; + for (i = 0, row = start; row < end; ++i, ++row) { + if (sscanf (lines[row], " %d %" SCNi64 "B %" SCNi64 "B %" SCNi64 "B" "%s", &r->guestfs_int_partition_list_val[i].part_num, &r->...
2015 Mar 13
0
Re: [PATCH] part-list: add support for show partition type
...f (r->guestfs_int_partition_list_val == NULL) { > + reply_with_perror ("malloc"); > + goto error2; > + } > + > + /* Now parse the lines. */ > + size_t i, k; > + if (has_type) { > + /* hold type such as primary, logical and extended */ > + char type_temp[16]; > + for (i = 0, row = start; row < end; ++i, ++row) { > + if (sscanf (lines[row], " %d %" SCNi64 "B %" SCNi64 "B %" SCNi64 "B" "%s", > &r->guestfs_int_partition_list_val[i].part_num, >...