| 62 | } |
| 63 | |
| 64 | static int parse_bundle_signature(struct bundle_header *header, const char *line) |
| 65 | { |
| 66 | int i; |
| 67 | |
| 68 | for (i = 0; i < ARRAY_SIZE(bundle_sigs); i++) { |
| 69 | if (!strcmp(line, bundle_sigs[i].signature)) { |
| 70 | header->version = bundle_sigs[i].version; |
| 71 | return 0; |
| 72 | } |
| 73 | } |
| 74 | return -1; |
| 75 | } |
| 76 | |
| 77 | int read_bundle_header_fd(int fd, struct bundle_header *header, |
| 78 | const char *report_path) |
no outgoing calls
no test coverage detected