aboutsummaryrefslogtreecommitdiff
path: root/sys/boot/common/part.c
diff options
context:
space:
mode:
authorToomas Soome <tsoome@FreeBSD.org>2016-11-08 06:50:18 +0000
committerToomas Soome <tsoome@FreeBSD.org>2016-11-08 06:50:18 +0000
commitcbd6713146d14bb506626d8add767771f9cbfb97 (patch)
tree2cc1284b2e4c42654073ba2021132df2173c494f /sys/boot/common/part.c
parentcd1693d3f953314178bc9c1ad75283ed29dc26ba (diff)
Notes
Diffstat (limited to 'sys/boot/common/part.c')
-rw-r--r--sys/boot/common/part.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/sys/boot/common/part.c b/sys/boot/common/part.c
index 51cceca5bb55..a5f76912d386 100644
--- a/sys/boot/common/part.c
+++ b/sys/boot/common/part.c
@@ -834,6 +834,7 @@ ptable_iterate(const struct ptable *table, void *arg, ptable_iterate_t *iter)
{
struct pentry *entry;
char name[32];
+ int ret = 0;
name[0] = '\0';
STAILQ_FOREACH(entry, &table->entries, entry) {
@@ -856,9 +857,8 @@ ptable_iterate(const struct ptable *table, void *arg, ptable_iterate_t *iter)
if (table->type == PTABLE_BSD)
sprintf(name, "%c", (u_char) 'a' +
entry->part.index);
- if (iter(arg, name, &entry->part))
- return 1;
+ if ((ret = iter(arg, name, &entry->part)) != 0)
+ return (ret);
}
- return 0;
+ return (ret);
}
-