Changeset View
Changeset View
Standalone View
Standalone View
head/lib/libefivar/efivar-dp-xlate.c
Show First 20 Lines • Show All 523 Lines • ▼ Show 20 Lines | find_geom_efimedia(struct gmesh *mesh, const char *dev) | ||||
return strdup(efimedia); | return strdup(efimedia); | ||||
} | } | ||||
static int | static int | ||||
build_dp(const char *efimedia, const char *relpath, efidp *dp) | build_dp(const char *efimedia, const char *relpath, efidp *dp) | ||||
{ | { | ||||
char *fp, *dptxt = NULL; | char *fp, *dptxt = NULL; | ||||
int rv = 0; | int rv = 0; | ||||
efidp out; | efidp out = NULL; | ||||
size_t len; | size_t len; | ||||
fp = path_to_file_dp(relpath); | fp = path_to_file_dp(relpath); | ||||
if (fp == NULL) { | if (fp == NULL) { | ||||
rv = ENOMEM; | rv = ENOMEM; | ||||
goto errout; | goto errout; | ||||
} | } | ||||
▲ Show 20 Lines • Show All 175 Lines • Show Last 20 Lines |