! Translate FS service error to errno * * @param[in] error FS service error * * @returns errno */
| 1408 | * @returns errno |
| 1409 | */ |
| 1410 | static int |
| 1411 | archive_translate_error(Result error) |
| 1412 | { |
| 1413 | error_map_t key = { .fs_error = error }; |
| 1414 | const error_map_t *rc = bsearch(&key, error_table, num_errors, |
| 1415 | sizeof(error_map_t), error_cmp); |
| 1416 | |
| 1417 | if(rc != NULL) |
| 1418 | return rc->error; |
| 1419 | |
| 1420 | return (int)error; |
| 1421 | } |
no outgoing calls
no test coverage detected